public function properties($map) { foreach ($map as $name => $type) { $this->_properties[$name] = new Property($name, $type); } return $this; }