src/Tool/GuardedPropertyTrait.php
protected function fillProperties(array $options = [])
    {
        if (isset($options['guarded'])) {
            unset($options['guarded']);
        }

        foreach ($options as $option => $value) {
            if (property_exists($this, $option) && !$this->isGuarded($option)) {
                $this->{$option} = $value;
            }
        }
    }
protected function fillProperties(array $options = [])
    {
        if (isset($options['guarded'])) {
            unset($options['guarded']);
        }

        foreach ($options as $option => $value) {
            if (property_exists($this, $option) && !$this->isGuarded($option)) {
                $this->{$option} = $value;
            }
        }
    }
protected function fillProperties ( array $ options = [ ] ) { if ( isset ( $ options [ 'guarded' ] ) ) { unset ( $ options [ 'guarded' ] ) ; } foreach ( $ options as $ option => $ value ) { if ( property_exists ( $ this , $ option ) && ! $ this -> isGuarded ( $ option ) ) { $ this -> { $ option } = $ value ; } } }
Attempts to mass assign the given options to explicitly defined properties,
skipping over any properties that are defined in the guarded array.

@param array $options
@return mixed
Attempts to mass assign the given options to explicitly defined properties skipping over any properties that are defined in the guarded array .