public function isApprovalRequired($key)
    {
        if ($this->isApprovalNotRequired($key)) {
            return false;
        }

        if (in_array($key, $this->approvalRequired())
            || $this->approvalRequired() == ['*']) {
            return true;
        }

        return ! empty($this->approvalNotRequired());
    }
public function isApprovalRequired($key)
    {
        if ($this->isApprovalNotRequired($key)) {
            return false;
        }

        if (in_array($key, $this->approvalRequired())
            || $this->approvalRequired() == ['*']) {
            return true;
        }

        return ! empty($this->approvalNotRequired());
    }
public function isApprovalRequired ( $ key ) { if ( $ this -> isApprovalNotRequired ( $ key ) ) { return false ; } if ( in_array ( $ key , $ this -> approvalRequired ( ) ) || $ this -> approvalRequired ( ) == [ '*' ] ) { return true ; } return ! empty ( $ this -> approvalNotRequired ( ) ) ; }
Determine if modification of the given attribute requires approval

@param $key
@return bool
Determine if modification of the given attribute requires approval