public function __construct($initialData = array()) { if (empty($initialData)) { $initialData['dateCreated'] = date('Y-m-d H:i:s'); } parent::__construct($initialData); }
public function __construct($data = array()) { if (is_scalar($data)) { $data = array('id' => $data); } parent::__construct($data); }
public function __construct($data = array(), $sitemapInfo = array()) { parent::__construct($data); if (!empty($sitemapInfo)) { $this->sitemapInfo = $sitemapInfo; } }
public function __construct($initialData, JobRepository $repository) { $this->repository = $repository; if (empty($initialData)) { $initialData['dateCreated'] = date('Y-m-d H:i:s'); } parent::__construct($initialData); }
public function __construct(array $initialData, ConfigurationRepository $configurationRepository) { $this->configurationRepository = $configurationRepository; parent::__construct($initialData); }
public function __construct(array $initialData, $columnName, $columnFieldInfo) { $this->columnName = $columnName; $this->columnFieldInfo = $columnFieldInfo; parent::__construct($initialData); }
public function __construct($documentData = array()) { parent::__construct($documentData); $this->items = new ItemList(); }