/** * @inheritdoc */ public function __construct(array $attributes = []) { parent::__construct($attributes); if (!file_exists($this->filePath)) { touch($this->filePath); } }
/** * @inheritdoc */ public function __construct(array $attributes = []) { parent::__construct($attributes); $this->connection = new PDO($this->dsn, $this->username, $this->password); }