static protected function getByGetter($object, $propertyName, $failOnUnknownGetter)
    {
        $getter = array($object, 'get' . $propertyName);

        if (is_callable($getter))
        {
            return call_user_func($getter);
        }
        elseif ($failOnUnknownGetter === true)
        {
            throw new RuntimeException("Unknown getter for property '{$propertyName}'");
        }
    }
static protected function getByGetter($object, $propertyName, $failOnUnknownGetter)
    {
        $getter = array($object, 'get' . $propertyName);

        if (is_callable($getter))
        {
            return call_user_func($getter);
        }
        elseif ($failOnUnknownGetter === true)
        {
            throw new RuntimeException("Unknown getter for property '{$propertyName}'");
        }
    }
static protected function getByGetter ( $ object , $ propertyName , $ failOnUnknownGetter ) { $ getter = array ( $ object , 'get' . $ propertyName ) ; if ( is_callable ( $ getter ) ) { return call_user_func ( $ getter ) ; } elseif ( $ failOnUnknownGetter === true ) { throw new RuntimeException ( "Unknown getter for property '{$propertyName}'" ) ; } }
Get property value by property name

@param       object      $object                     Object with data
@param       string      $propertyName               Property name
@param       boolean     $failOnUnknownGetter        Throw exception if getter not found or not

@return      mixed|null                              Property value or null, if getter not found

@throws      RuntimeException                        Property getter not found
Get property value by property name