src/Traits/SetterInvokerTrait.php
protected function invokeSetter(ReflectionProperty $property, $value) : void
    {
        $methodName = $this->generateSetterName($property->getName());
        if ($this->hasInternalMethod($methodName)) {
            $this->$methodName($value);
            return;
        }

        throw new UndefinedPropertyException(sprintf(
            'No "%s"() method available for property "%s"', $methodName,
            $property->getName()
        ));
    }
protected function invokeSetter(ReflectionProperty $property, $value) : void
    {
        $methodName = $this->generateSetterName($property->getName());
        if ($this->hasInternalMethod($methodName)) {
            $this->$methodName($value);
            return;
        }

        throw new UndefinedPropertyException(sprintf(
            'No "%s"() method available for property "%s"', $methodName,
            $property->getName()
        ));
    }
protected function invokeSetter ( ReflectionProperty $ property , $ value ) : void { $ methodName = $ this -> generateSetterName ( $ property -> getName ( ) ) ; if ( $ this -> hasInternalMethod ( $ methodName ) ) { $ this -> $ methodName ( $ value ) ; return ; } throw new UndefinedPropertyException ( sprintf ( 'No "%s"() method available for property "%s"' , $ methodName , $ property -> getName ( ) ) ) ; }
Invoke the given property's setter-method

@param ReflectionProperty $property The property in question
@param mixed $value The property's value

@return void;
@throws UndefinedPropertyException If given property doesn't have a corresponding get
Invoke the given property s setter - method