/** * Implement a virtual 'headers', 'query' and 'data class property to return their respective objects. * * @param string $name The property name. * @return string $value The property value. */ public function __get($name) { if ($name == 'cookies') { return $this->getCookies(); } if ($name == 'files') { return $this->getFiles(); } return parent::__get($name); }