protected function fromDocblock($docblock, array $context=array())
    {
        $annotations = $this->getParser()->parse($docblock);

        $col = $this->getCollection();
        $rv = array();
        foreach ($annotations as $annot) {
            list($name, $positional, $named) = $annot;

            if ($obj = $col->create($name, $positional, $named, $context)) {
                $rv[] = $obj;
            }
        }

        return $rv;
    }
protected function fromDocblock($docblock, array $context=array())
    {
        $annotations = $this->getParser()->parse($docblock);

        $col = $this->getCollection();
        $rv = array();
        foreach ($annotations as $annot) {
            list($name, $positional, $named) = $annot;

            if ($obj = $col->create($name, $positional, $named, $context)) {
                $rv[] = $obj;
            }
        }

        return $rv;
    }
protected function fromDocblock ( $ docblock , array $ context = array ( ) ) { $ annotations = $ this -> getParser ( ) -> parse ( $ docblock ) ; $ col = $ this -> getCollection ( ) ; $ rv = array ( ) ; foreach ( $ annotations as $ annot ) { list ( $ name , $ positional , $ named ) = $ annot ; if ( $ obj = $ col -> create ( $ name , $ positional , $ named , $ context ) ) { $ rv [ ] = $ obj ; } } return $ rv ; }
Use the parser to parse a docblock into annotations and create annotation
objects.

@since   0.1
@access  protected
@param   string $docblock The docblock to parse.
@param   array $context This is the place from where the docblock came
This particular reader uses the keys `class`, `method`, `property`,
and `function`. One or more of them will be present. Each would
would be the appropriate Reflection(Class|Method|Property|Function)
object. The array is converted into an AnnotationContextInterface
implentation here, and, in this reader, passed as the second
argument to the constructor.
@return  object[]
Use the parser to parse a docblock into annotations and create annotation objects .