Skip to content

Commit

Permalink
allow nette/utils 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Mar 18, 2024
1 parent 7fb318b commit f31a98d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
},
"require": {
"php": "^8.1",
"nette/utils": "^3.1",
"nette/utils": "^3.1|^4.0",
"nette/php-generator": "^4.0",
"doctrine/inflector": "^2.0"
},
"require-dev": {
"contributte/qa": "^0.3",
"phpunit/phpunit": ">=9.0",
"phpunit/phpunit": "^10.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0"
},
Expand Down
19 changes: 9 additions & 10 deletions tests/TestEntities/PhpDocPropertyEntity.php
Original file line number Diff line number Diff line change
@@ -1,66 +1,65 @@
<?php declare(strict_types = 1);
<?php

namespace DodoIt\EntityGenerator\Tests\TestEntities;

use DodoIt\EntityGenerator\Entity\Entity;

/**
* @property int $id
* @property string $title
* @property int $published
* @property \DateTimeInterface $created_at
*/
class PhpDocPropertyEntity extends Entity
class PhpDocPropertyEntity extends \DodoIt\EntityGenerator\Entity\Entity
{

public const TABLE_NAME = 'php_doc_properties';

public function getId(): int
{
return $this->id;
}


public function setId(int $value): self
{
$this['id'] = $value;

return $this;
}


public function getTitle(): ?string
{
return $this->title;
}


public function setTitle(?string $value): self
{
$this['title'] = $value;

return $this;
}


public function getPublished(): bool
{
return $this->published;
}


public function setPublished(bool $value): self
{
$this['published'] = $value;

return $this;
}


public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}


public function setCreatedAt(?\DateTimeInterface $value): self
{
$this['created_at'] = $value;

return $this;
}

}

0 comments on commit f31a98d

Please sign in to comment.