protected function setProperty(ReflectionProperty $property)
    {
        if (mb_strpos($property->getDocComment(), Bean::ANNOTATION_PROPERTY, 0, 'UTF-8') !== false) {
            $this->property = $property;
        } else {
            $msg = "The property must be annotated with '@qtism-bean-property'.";
            throw new BeanException($msg, BeanException::NO_ANNOTATION);
        }
    }
protected function setProperty(ReflectionProperty $property)
    {
        if (mb_strpos($property->getDocComment(), Bean::ANNOTATION_PROPERTY, 0, 'UTF-8') !== false) {
            $this->property = $property;
        } else {
            $msg = "The property must be annotated with '@qtism-bean-property'.";
            throw new BeanException($msg, BeanException::NO_ANNOTATION);
        }
    }
protected function setProperty ( ReflectionProperty $ property ) { if ( mb_strpos ( $ property -> getDocComment ( ) , Bean :: ANNOTATION_PROPERTY , 0 , 'UTF-8' ) !== false ) { $ this -> property = $ property ; } else { $ msg = "The property must be annotated with '@qtism-bean-property'." ; throw new BeanException ( $ msg , BeanException :: NO_ANNOTATION ) ; } }
Set the wrapped ReflectionProperty object.

@param \ReflectionProperty $property A ReflectionProperty object.
@throws \qtism\common\beans\BeanException If the given $property is not annotated with @qtism-bean-property.
Set the wrapped ReflectionProperty object .