0 follower

Trait Yiisoft\ActiveRecord\Trait\PrivatePropertiesTrait

Trait to handle private properties in Active Record classes.

The trait required when using private properties inside the model class.

See also:

Method Details

Hide inherited methods

populateProperty() protected method

protected void populateProperty ( string $name, mixed $value )
$name string
$value mixed

                protected function populateProperty(string $name, mixed $value): void
{
    $this->$name = $value;
}

            
propertyValuesInternal() protected method

protected array propertyValuesInternal ( )

                protected function propertyValuesInternal(): array
{
    return get_object_vars($this);
}