src/Entity/AdminFinance/Bank/BankMouvementCategorie.php line 11
<?phpnamespace App\Entity\AdminFinance\Bank;use App\Repository\AdminFinance\Bank\BankMouvementCategorieRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: BankMouvementCategorieRepository::class)]class BankMouvementCategorie{const TYPE_DEBIT = 'D';const TYPE_CREDIT = 'C';#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 1)]private string $type = self::TYPE_DEBIT;#[ORM\Column(length: 50, nullable: true)]private ?string $libelle = null;#[ORM\ManyToOne(targetEntity:BankMouvementCategorie::class)]#[ORM\JoinColumn(nullable: true)]private ?BankMouvementCategorie $parent = null;#[ORM\Column]private ?bool $selection;#[ORM\Column]private ?bool $budget;public function __construct(){}public function getId(): ?int{return $this->id;}public function getType(): ?string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function getLibelle(): ?string{return $this->libelle;}public function setLibelle(string $libelle): self{$this->libelle = $libelle;return $this;}public function __toString() {return $this->getLibelle();}public function getParent(): ?self{return $this->parent;}public function setParent(?self $parent): self{$this->parent = $parent;return $this;}public function getSelection(): ?bool{return $this->selection;}public function setSelection(?bool $selection): self{$this->selection = $selection;return $this;}public function getBudget(): ?bool{return $this->budget;}public function setBudget(?bool $budget): self{$this->budget = $budget;return $this;}public function isSelection(): ?bool{return $this->selection;}public function isBudget(): ?bool{return $this->budget;}}