original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get annotations by entity and annotation
  
  @param  Object $entity
  @param  string $annotation
  @return array
docstring_tokens: Get annotations by entity and annotation