protected function isPropertyAnnotated($propertyName)
    {
        $target = $this->getClass();
        $isAnnotated = false;

        while ($target) {

            if ($target->hasProperty($propertyName)) {
                $comment = $target->getProperty($propertyName)->getDocComment();
                if (empty($comment) === false) {
                    $isAnnotated = mb_strpos($comment, self::ANNOTATION_PROPERTY, 0, 'UTF-8') !== false;

                    if ($isAnnotated === true) {
                        break;
                    }

                }
            }

            $target = $target->getParentClass();
        }

        return $isAnnotated;
    }
protected function isPropertyAnnotated($propertyName)
    {
        $target = $this->getClass();
        $isAnnotated = false;

        while ($target) {

            if ($target->hasProperty($propertyName)) {
                $comment = $target->getProperty($propertyName)->getDocComment();
                if (empty($comment) === false) {
                    $isAnnotated = mb_strpos($comment, self::ANNOTATION_PROPERTY, 0, 'UTF-8') !== false;

                    if ($isAnnotated === true) {
                        break;
                    }

                }
            }

            $target = $target->getParentClass();
        }

        return $isAnnotated;
    }
protected function isPropertyAnnotated ( $ propertyName ) { $ target = $ this -> getClass ( ) ; $ isAnnotated = false ; while ( $ target ) { if ( $ target -> hasProperty ( $ propertyName ) ) { $ comment = $ target -> getProperty ( $ propertyName ) -> getDocComment ( ) ; if ( empty ( $ comment ) === false ) { $ isAnnotated = mb_strpos ( $ comment , self :: ANNOTATION_PROPERTY , 0 , 'UTF-8' ) !== false ; if ( $ isAnnotated === true ) { break ; } } } $ target = $ target -> getParentClass ( ) ; } return $ isAnnotated ; }
Whether a given property is annotated with the appropriate bean annotation.

@param string $propertyName The name of the property.
@return boolean
Whether a given property is annotated with the appropriate bean annotation .