Respect\Validation\Rules\KeyNested::getValueFromObject PHP Метод

getValueFromObject() приватный Метод

private getValueFromObject ( $object, $property )
    private function getValueFromObject($object, $property)
    {
        if (empty($property) || !property_exists($object, $property)) {
            $message = sprintf('Cannot select the property %s from the given object', $this->reference);
            throw new ComponentException($message);
        }
        return $object->{$property};
    }