/** * Constructor * * @return void */ public function __construct(KConfig $config = null) { //If no config is passed create it if (!isset($config)) { $config = new KConfig(); } parent::__construct($config); $this->_break_condition = (bool) $config->break_condition; $this->_enabled = (bool) $config->enabled; $this->_context = $config->context; }
/** * Initializes the default configuration for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param KConfig $config An optional KConfig object with configuration options. */ public function __construct(KConfig $config = null) { parent::__construct($config); $this->_repository_entities = new AnObjectArray(); }