eugene-matvejev/battleship-game-api

View on GitHub
src/FoundationBundle/ORM/AbstractEntity.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace EM\FoundationBundle\ORM;

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

/**
 * @since 8.0
 */
abstract class AbstractEntity implements IdentifiableInterface
{
    /**
     * @ORM\Id
     * @ORM\Column(name="id", type="integer")
     * @ORM\GeneratedValue(strategy="IDENTITY")
     *
     * @JMS\Type("integer")
     *
     * @var int
     */
    protected $id;

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