Source of file FooBar.php
Size: 1,245 Bytes - Last Modified: 2023-11-16T22:56:03+01:00
/home/websites/teicee/packagist/site/phpdoc/conf/../vendor/teicee/make-bundle/acme/src/Entity/FooBar.php
| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 | <?phpnamespace TIC\AcmeBundle\Entity; use TIC\DormBundle\Base\TICEntity as BaseEntity; use Doctrine\ORM\Mapping as ORM; use TIC\AcmeBundle\Repository\FooBarRepository as EntityRepo; /** * @ORM\Table(name="tic_acme_foo_bar") * @ORM\Entity(repositoryClass=EntityRepo::class) */class FooBar extends BaseEntity {// --------------------------------------------------------------------- Properties/** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */private $id; /** * @ORM\Column(type="string", length=100) */private $name; // --------------------------------------------------------------------- Custom methodspublic function __construct() { } public function __toString() { return $this->name; } // --------------------------------------------------------------------- Shortcut methods// --------------------------------------------------------------------- Tweaked methods// --------------------------------------------------------------------- Auto-generatedpublic function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } } |