public function __construct(\stdClass $obj) { if ($obj->values) { $obj->values = array_merge($this->values, (array) $obj->values); } parent::__construct($obj); }