public function excludedForMethod($method) : bool
    {
        if (empty($this->only) && empty($this->except)) {
            return false;
        }

        return (!empty($this->only) && !in_array($method, $this->only)) ||
            (!empty($this->except) && in_array($method, $this->except));
    }
public function excludedForMethod($method) : bool
    {
        if (empty($this->only) && empty($this->except)) {
            return false;
        }

        return (!empty($this->only) && !in_array($method, $this->only)) ||
            (!empty($this->except) && in_array($method, $this->except));
    }
public function excludedForMethod ( $ method ) : bool { if ( empty ( $ this -> only ) && empty ( $ this -> except ) ) { return false ; } return ( ! empty ( $ this -> only ) && ! in_array ( $ method , $ this -> only ) ) || ( ! empty ( $ this -> except ) && in_array ( $ method , $ this -> except ) ) ; }
Is a specific method excluded by the options set on this object

@param  string $method
@return bool
Is a specific method excluded by the options set on this object