public function __construct($name, Config $config = null) { $this->setName($name); if ($config) { $this->setConfig($config); } }