src/AnnotationBlock.php
protected function setValues($type)
    {
        switch ($type) {
            case static::CLIENT:
                $this->values = ['cs', 'cr'];
                break;
            case static::SERVER:
                $this->values = ['sr', 'ss'];
                break;
            default:
                throw new \InvalidArgumentException('$type must be TYPE_CLIENT or TYPE_SERVER');
        }
    }
protected function setValues($type)
    {
        switch ($type) {
            case static::CLIENT:
                $this->values = ['cs', 'cr'];
                break;
            case static::SERVER:
                $this->values = ['sr', 'ss'];
                break;
            default:
                throw new \InvalidArgumentException('$type must be TYPE_CLIENT or TYPE_SERVER');
        }
    }
protected function setValues ( $ type ) { switch ( $ type ) { case static :: CLIENT : $ this -> values = [ 'cs' , 'cr' ] ; break ; case static :: SERVER : $ this -> values = [ 'sr' , 'ss' ] ; break ; default : throw new \ InvalidArgumentException ( '$type must be TYPE_CLIENT or TYPE_SERVER' ) ; } }
Valid type and set annotation types

@param $type string

@throws \InvalidArgumentException
Valid type and set annotation types