src/Sms.php
public function getStatus($id, $phone, $all = 2)
    {
        if (empty($id) || empty($phone)) {
            throw new \InvalidArgumentException('For getting sms status, please, set id and phone');
        }

        $data = $this->_client->getMessageStatus($id, $phone, $all);

        if ($this->_logger instanceof LoggerInterface) {
            $this->_logger->updateRecordBySmsIdAndPhone($id, $phone, $data);
        }

        return $data;
    }
public function getStatus($id, $phone, $all = 2)
    {
        if (empty($id) || empty($phone)) {
            throw new \InvalidArgumentException('For getting sms status, please, set id and phone');
        }

        $data = $this->_client->getMessageStatus($id, $phone, $all);

        if ($this->_logger instanceof LoggerInterface) {
            $this->_logger->updateRecordBySmsIdAndPhone($id, $phone, $data);
        }

        return $data;
    }
public function getStatus ( $ id , $ phone , $ all = 2 ) { if ( empty ( $ id ) || empty ( $ phone ) ) { throw new \ InvalidArgumentException ( 'For getting sms status, please, set id and phone' ) ; } $ data = $ this -> _client -> getMessageStatus ( $ id , $ phone , $ all ) ; if ( $ this -> _logger instanceof LoggerInterface ) { $ this -> _logger -> updateRecordBySmsIdAndPhone ( $ id , $ phone , $ data ) ; } return $ data ; }
Get sms status by id and phone

@param string $id
@param string $phone
@param int $all
@return array|bool
@throws \InvalidArgumentException
Get sms status by id and phone