message = $message; } /** * @param $name * @return mixed * @throws PlivoRestException */ function __get($name) { if (property_exists($this, $name)) { return $this->$name; } throw new PlivoRestException('Delete response does not contain '.$name.' property'); } }