Event/AbstractViewGrantedEvent.php
protected function validateFieldVoteSubject(FieldVote $fieldVote)
    {
        $object = $fieldVote->getSubject()->getObject();

        if (!\is_object($object)) {
            throw new UnexpectedTypeException($object, 'object');
        }

        return $object;
    }
protected function validateFieldVoteSubject(FieldVote $fieldVote)
    {
        $object = $fieldVote->getSubject()->getObject();

        if (!\is_object($object)) {
            throw new UnexpectedTypeException($object, 'object');
        }

        return $object;
    }
protected function validateFieldVoteSubject ( FieldVote $ fieldVote ) { $ object = $ fieldVote -> getSubject ( ) -> getObject ( ) ; if ( ! \ is_object ( $ object ) ) { throw new UnexpectedTypeException ( $ object , 'object' ) ; } return $ object ; }
Validate and return the domain object instance in field vote.

@param FieldVote $fieldVote The field vote

@return object
Validate and return the domain object instance in field vote .