public function all($key = null)
    {
        if ($key !== null) {
            return isset($this->smsData[$key]) ? $this->smsData[$key] : null;
        }

        return $this->smsData;
    }
public function all($key = null)
    {
        if ($key !== null) {
            return isset($this->smsData[$key]) ? $this->smsData[$key] : null;
        }

        return $this->smsData;
    }
public function all ( $ key = null ) { if ( $ key !== null ) { return isset ( $ this -> smsData [ $ key ] ) ? $ this -> smsData [ $ key ] : null ; } return $ this -> smsData ; }
Get all of the data.

@param null|string $key

@return mixed
Get all of the data .