public function __construct($options) { if (is_string($options)) { $options = ['name' => $options]; } parent::__construct($options); }