geno/wp-content/plugins/mailpoet/lib/Doctrine/EntityTraits/AutoincrementedIdTrait.php

29 lines
543 B
PHP
Raw Normal View History

2024-02-01 17:24:18 +05:30
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Doctrine\EntityTraits;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Doctrine\ORM\Mapping as ORM;
trait AutoincrementedIdTrait {
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue
* @var int|null
*/
private $id;
/** @return int|null */
public function getId() {
return $this->id;
}
/** @param int|null $id */
public function setId($id) {
$this->id = $id;
}
}