/** * @param array $optionCollection * @param bool|true $htmlSafe * @param bool|false $needsEnv */ public function __construct(array $optionCollection = [], $htmlSafe = true, $needsEnv = false) { if (is_iterable_not_empty($optionCollection)) { $this->setOptionCollection($optionCollection); } if (true === $htmlSafe) { $this->enableOptionHtmlSafe(); } if (true === $needsEnv) { $this->enableOptionNeedsEnv(); } }
/** * @param array $optionCollection */ public function __construct(array $optionCollection = []) { if (is_iterable_not_empty($optionCollection)) { $this->setOptionCollection($optionCollection); } }