src/Brokerage/AssetIntent.php
public function validateStatus() {
        if ($this->getStatus() === 'closed') {
            $this->setError('global', 'status-final', $this->getFactory()->newError([
                "status" => 400,
                "title" => "Updates No Longer Permitted",
                "detail" => "This intent's status is in a final state and you can no longer update it. If you need to update the asset information, create a new intent with the new data."
            ]));
            return false;
        } else {
            $this->clearError('global', 'status-final');
            return true;
        }
    }
public function validateStatus() {
        if ($this->getStatus() === 'closed') {
            $this->setError('global', 'status-final', $this->getFactory()->newError([
                "status" => 400,
                "title" => "Updates No Longer Permitted",
                "detail" => "This intent's status is in a final state and you can no longer update it. If you need to update the asset information, create a new intent with the new data."
            ]));
            return false;
        } else {
            $this->clearError('global', 'status-final');
            return true;
        }
    }
public function validateStatus ( ) { if ( $ this -> getStatus ( ) === 'closed' ) { $ this -> setError ( 'global' , 'status-final' , $ this -> getFactory ( ) -> newError ( [ "status" => 400 , "title" => "Updates No Longer Permitted" , "detail" => "This intent's status is in a final state and you can no longer update it. If you need to update the asset information, create a new intent with the new data." ] ) ) ; return false ; } else { $ this -> clearError ( 'global' , 'status-final' ) ; return true ; } }
Check to see if the status of this asset intent permits further updates
@return bool
Check to see if the status of this asset intent permits further updates