public function __construct($config, $name, $catMetric = null) { parent::__construct(); $this->filename = $config; $this->category = $name; if (null !== $catMetric) { $this->cat_metric = $catMetric; } }
public function __construct($name) { parent::__construct(); $this->filename = self::FILE_NAME; $this->category = $name; }