public function getAsArray($key)
    {
        if (! $this->has($key)) {
            return [];
        }
        $res = $this->attributes[$key];
        if (is_null($res)) {
            return [null];
        }

        return (array) $res;
    }
public function getAsArray($key)
    {
        if (! $this->has($key)) {
            return [];
        }
        $res = $this->attributes[$key];
        if (is_null($res)) {
            return [null];
        }

        return (array) $res;
    }
public function getAsArray ( $ key ) { if ( ! $ this -> has ( $ key ) ) { return [ ] ; } $ res = $ this -> attributes [ $ key ] ; if ( is_null ( $ res ) ) { return [ null ] ; } return ( array ) $ res ; }
Retrieve annotation values as an array even if there's only one single value

@param  string $key A valid annotation tag, should match parser rules
@return array
Retrieve annotation values as an array even if there s only one single value