public function __get($name) { if (array_key_exists($name, $this->spec)) { return $this->spec[$name]; } return null; }