public function setMethodAttribute($method)
    {
        if (is_array($method)) {
            $action = 0;
            foreach ($method as $verb) {
                $action = $action | VerbsMask::toNumeric($verb);
            }
        } else {
            $action = $method;
        }

        $this->attributes['method'] = $action;
    }
public function setMethodAttribute($method)
    {
        if (is_array($method)) {
            $action = 0;
            foreach ($method as $verb) {
                $action = $action | VerbsMask::toNumeric($verb);
            }
        } else {
            $action = $method;
        }

        $this->attributes['method'] = $action;
    }
public function setMethodAttribute ( $ method ) { if ( is_array ( $ method ) ) { $ action = 0 ; foreach ( $ method as $ verb ) { $ action = $ action | VerbsMask :: toNumeric ( $ verb ) ; } } else { $ action = $ method ; } $ this -> attributes [ 'method' ] = $ action ; }
Converts methods array to verb masks

@param $method

@throws \DreamFactory\Core\Exceptions\NotImplementedException
Converts methods array to verb masks