src/Helper/ValidationHelper.php
protected function getPropertyValue($property)
    {
        $getter = sprintf('get%s', $property);
        if (!method_exists($this->object, $getter)) {
            throw new NostoException(
                sprintf(
                    'Class %s does not have getter for property %s',
                    get_class($this->object),
                    $property
                )
            );
        }

        return $this->object->$getter();
    }
protected function getPropertyValue($property)
    {
        $getter = sprintf('get%s', $property);
        if (!method_exists($this->object, $getter)) {
            throw new NostoException(
                sprintf(
                    'Class %s does not have getter for property %s',
                    get_class($this->object),
                    $property
                )
            );
        }

        return $this->object->$getter();
    }
protected function getPropertyValue ( $ property ) { $ getter = sprintf ( 'get%s' , $ property ) ; if ( ! method_exists ( $ this -> object , $ getter ) ) { throw new NostoException ( sprintf ( 'Class %s does not have getter for property %s' , get_class ( $ this -> object ) , $ property ) ) ; } return $ this -> object -> $ getter ( ) ; }
Gets the value of an attribute
Throws an exception if the getter doesn't exist

@param $property
@return mixed
@throws NostoException
Gets the value of an attribute Throws an exception if the getter doesn t exist