diff --git a/examples/Pdo/Entities/ArticleEntity.php b/examples/Pdo/Entities/ArticleEntity.php deleted file mode 100644 index 7b1dcde..0000000 --- a/examples/Pdo/Entities/ArticleEntity.php +++ /dev/null @@ -1,116 +0,0 @@ -id; - } - - - public function setId(int $value): self - { - $this['id'] = $value; - return $this; - } - - - public function getCategoryId(): int - { - return $this->category_id; - } - - - public function setCategoryId(int $value): self - { - $this['category_id'] = $value; - return $this; - } - - - public function getTitle(): ?string - { - return $this->title; - } - - - public function setTitle(?string $value): self - { - $this['title'] = $value; - return $this; - } - - - public function getContent(): ?string - { - return $this->content; - } - - - public function setContent(?string $value): self - { - $this['content'] = $value; - return $this; - } - - - public function getPublished(): bool - { - return $this->published; - } - - - public function setPublished(bool $value): self - { - $this['published'] = $value; - return $this; - } - - - public function getCreatedAt(): ?\DateTime - { - return $this->created_at; - } - - - public function setCreatedAt(?\DateTime $value): self - { - $this['created_at'] = $value; - return $this; - } -} diff --git a/examples/Pdo/Entities/CategoryEntity.php b/examples/Pdo/Entities/CategoryEntity.php deleted file mode 100644 index 35fa50e..0000000 --- a/examples/Pdo/Entities/CategoryEntity.php +++ /dev/null @@ -1,44 +0,0 @@ -id; - } - - - public function setId(int $value): self - { - $this['id'] = $value; - return $this; - } - - - public function getName(): ?string - { - return $this->name; - } - - - public function setName(?string $value): self - { - $this['name'] = $value; - return $this; - } -} diff --git a/examples/Pdo/generate.php b/examples/Pdo/generate.php index 9de3099..82d509d 100644 --- a/examples/Pdo/generate.php +++ b/examples/Pdo/generate.php @@ -10,6 +10,6 @@ $pdo = new \PDO('mysql:dbname=example;host=127.0.0.1', 'root', ''); -$generatorFactory = new \DodoIt\EntityGenerator\GeneratorFactory($pdo); +$generatorFactory = new \DodoIt\EntityGenerator\Factory\GeneratorPdoFactory($pdo); $generator = $generatorFactory->create($config); $generator->generate(); \ No newline at end of file