public function getStatus($opportunityStatusId): OpportunityStatus
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use get() instead.', __METHOD__), E_USER_DEPRECATED);

        return $this->get($opportunityStatusId);
    }
public function getStatus($opportunityStatusId): OpportunityStatus
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use get() instead.', __METHOD__), E_USER_DEPRECATED);

        return $this->get($opportunityStatusId);
    }
public function getStatus ( $ opportunityStatusId ) : OpportunityStatus { @ trigger_error ( sprintf ( 'The %s() method is deprecated since version 0.8. Use get() instead.' , __METHOD__ ) , E_USER_DEPRECATED ) ; return $ this -> get ( $ opportunityStatusId ) ; }
Gets the information about the opportunity status that matches the given
ID.

@param string $opportunityStatusId The ID of the opportunityStatus

@return OpportunityStatus
Gets the information about the opportunity status that matches the given ID .