public function defineConsts(array $map) { foreach ($map as $name => $value) { defined($name) or define($name, $value); } return $this; }