public function __construct($params) { if (isset($params['extend'])) { $this->extend = $params['extend']; } }