public function get($entity, $annotation)
    {
        $properties = $this->getProperties($entity);

        $return = array();
        foreach ($properties as $reflectionProperty) {
            $propertyAnnotation = $this->reader->getPropertyAnnotation($reflectionProperty, $annotation);
            if (!is_null($propertyAnnotation) && get_class($propertyAnnotation) == $annotation) {
                $return[$reflectionProperty->name] = $reflectionProperty;
            }
        }

        return $return;
    }
public function get($entity, $annotation)
    {
        $properties = $this->getProperties($entity);

        $return = array();
        foreach ($properties as $reflectionProperty) {
            $propertyAnnotation = $this->reader->getPropertyAnnotation($reflectionProperty, $annotation);
            if (!is_null($propertyAnnotation) && get_class($propertyAnnotation) == $annotation) {
                $return[$reflectionProperty->name] = $reflectionProperty;
            }
        }

        return $return;
    }
public function get ( $ entity , $ annotation ) { $ properties = $ this -> getProperties ( $ entity ) ; $ return = array ( ) ; foreach ( $ properties as $ reflectionProperty ) { $ propertyAnnotation = $ this -> reader -> getPropertyAnnotation ( $ reflectionProperty , $ annotation ) ; if ( ! is_null ( $ propertyAnnotation ) && get_class ( $ propertyAnnotation ) == $ annotation ) { $ return [ $ reflectionProperty -> name ] = $ reflectionProperty ; } } return $ return ; }
Get annotations by entity and annotation

@param  Object $entity
@param  string $annotation
@return array
Get annotations by entity and annotation