[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.143.7.112: ~ $
<?php
declare(strict_types=1);

namespace PhpList\Core\Domain\Model\Traits;

use Doctrine\ORM\Mapping;
use JMS\Serializer\Annotation\Expose;

/**
 * This trait provides an ID property to domain models.
 *
 * This is the default implementation of the Identity interface.
 *
 * @author Oliver Klee <oliver@phplist.com>
 */
trait IdentityTrait
{
    /**
     * @var int
     * @Mapping\Id
     * @Mapping\Column(type="integer")
     * @Mapping\GeneratedValue
     * @Expose
     */
    private $id = 0;

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

Filemanager

Name Type Size Permission Actions
CreationDateTrait.php File 1.06 KB 0644
IdentityTrait.php File 609 B 0644
ModificationDateTrait.php File 1.14 KB 0644