FOF30\Model\Model::setState PHP Метод

setState() публичный Метод

Method to set model state variables
public setState ( string $property, mixed $value = null ) : mixed
$property string The name of the property.
$value mixed The value of the property to set or null.
Результат mixed The previous value of the property or null if not set.
    public function setState($property, $value = null)
    {
        if (is_null($this->state)) {
            $this->state = new \stdClass();
        }
        return $this->state->{$property} = $value;
    }