protected function parseValue($value, $key = null)
    {
        $value = trim($value);
        $type = '\Minime\\Annotations\\Types\\DynamicType';
        if (preg_match($this->typesPattern, $value, $found)) { // strong typed
            $type = $found[1];
            $value = trim(substr($value, strlen($type)));
            if (in_array($type, $this->types)) {
                $type = array_search($type, $this->types);
            }
        }

        return (new $type)->parse($value, $key);
    }
protected function parseValue($value, $key = null)
    {
        $value = trim($value);
        $type = '\Minime\\Annotations\\Types\\DynamicType';
        if (preg_match($this->typesPattern, $value, $found)) { // strong typed
            $type = $found[1];
            $value = trim(substr($value, strlen($type)));
            if (in_array($type, $this->types)) {
                $type = array_search($type, $this->types);
            }
        }

        return (new $type)->parse($value, $key);
    }
protected function parseValue ( $ value , $ key = null ) { $ value = trim ( $ value ) ; $ type = '\Minime\\Annotations\\Types\\DynamicType' ; if ( preg_match ( $ this -> typesPattern , $ value , $ found ) ) { // strong typed $ type = $ found [ 1 ] ; $ value = trim ( substr ( $ value , strlen ( $ type ) ) ) ; if ( in_array ( $ type , $ this -> types ) ) { $ type = array_search ( $ type , $ this -> types ) ; } } return ( new $ type ) -> parse ( $ value , $ key ) ; }
Parse a single annotation value

@param  string $value
@param  string $key
@return mixed
Parse a single annotation value