| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | abstract class AbstractModel |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | * |
||
| 21 | * @ORM\Column(type="integer", options={"unsigned" = true}) |
||
| 22 | * @ORM\Id |
||
| 23 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
| 24 | */ |
||
| 25 | protected $id; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @ORM\Column(type="datetime") |
||
| 29 | */ |
||
| 30 | private $creationDate; |
||
| 31 | |||
| 32 | public function getId(): int |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @API\Field(type="GraphQLTests\Doctrine\Blog\Types\DateTimeType") |
||
| 39 | */ |
||
| 40 | public function getCreationDate(): DateTime |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @API\Input(type="GraphQLTests\Doctrine\Blog\Types\DateTimeType") |
||
| 47 | */ |
||
| 48 | public function setCreationDate(DateTime $creationDate): void |
||
| 53 |