---
# System prepended metadata

title: Провести код ревью

---

# Провести код ревью

```php=
<?php

class ExampleClass extends AbstractClass
{
    private $variable = 1;
    private DataMapper $dataMapper;

    public function __construct(string $variable)
    {
        $this->variable = $variable;
        $this->dataMapper = new DataMapper();
        $this->serializer = new ApiPlatform\Core\Serializer\();
    }

    public function getVariable()
    {
        return $this->variable;
    }

    /**
     * @return DataMapper
     */
    public function getDataMapper(): DataMapper
    {
        return $this->dataMapper;
    }

    /**
     * @param DataMapper $dataMapper
     * @return StrongExapmle
     */
    public function setDataMapper(DataMapper $dataMapper): StrongExapmle
    {
        $this->dataMapper = $dataMapper;
        return $this;
    }
}

```