src/Model/Attribute/Accessor/Enabled.php
public function setEnabled(?bool $enabled)
    {
        $this->enabled = $enabled;

        if (property_exists($this, 'enabledAt')) {
            $this->enabledAt = $enabled ? new DateTime : null;
        }

        return $this;
    }
public function setEnabled(?bool $enabled)
    {
        $this->enabled = $enabled;

        if (property_exists($this, 'enabledAt')) {
            $this->enabledAt = $enabled ? new DateTime : null;
        }

        return $this;
    }
Set enabled

@param boolean $enabled
@return object