public function parse($docblock)
    {
        $docblock = $this->getDocblockTagsSection($docblock);
        $annotations = $this->parseAnnotations($docblock);
        foreach ($annotations as &$value) {
            if (1 == count($value)) {
                $value = $value[0];
            }
        }

        return $annotations;
    }
public function parse($docblock)
    {
        $docblock = $this->getDocblockTagsSection($docblock);
        $annotations = $this->parseAnnotations($docblock);
        foreach ($annotations as &$value) {
            if (1 == count($value)) {
                $value = $value[0];
            }
        }

        return $annotations;
    }
public function parse ( $ docblock ) { $ docblock = $ this -> getDocblockTagsSection ( $ docblock ) ; $ annotations = $ this -> parseAnnotations ( $ docblock ) ; foreach ( $ annotations as & $ value ) { if ( 1 == count ( $ value ) ) { $ value = $ value [ 0 ] ; } } return $ annotations ; }
Parse a given docblock

@param  string $docblock
@return array
Parse a given docblock