public function add(Annotation $annotation)
    {
        if (!isset($this->types[$annotation->type()])) {
            $this->types[$annotation->type()] = [$annotation];
        } else {
            $this->types[$annotation->type()][] = $annotation;
        }

        return $this;
    }
public function add(Annotation $annotation)
    {
        if (!isset($this->types[$annotation->type()])) {
            $this->types[$annotation->type()] = [$annotation];
        } else {
            $this->types[$annotation->type()][] = $annotation;
        }

        return $this;
    }
public function add ( Annotation $ annotation ) { if ( ! isset ( $ this -> types [ $ annotation -> type ( ) ] ) ) { $ this -> types [ $ annotation -> type ( ) ] = [ $ annotation ] ; } else { $ this -> types [ $ annotation -> type ( ) ] [ ] = $ annotation ; } return $ this ; }
adds given annotation

@internal  only to be called by the parser
@param   \stubbles\reflect\annotation\Annotation  $annotation
adds given annotation