<?php
namespace App\Entity\System;
use App\Repository\System\accessRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: accessRepository::class)]
class access
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'boolean',nullable: true)]
private $able;
#[ORM\ManyToOne(inversedBy: 'accesses', targetEntity: categories::class)]
private $categories;
#[ORM\ManyToOne(inversedBy: 'accesses', targetEntity: roles::class)]
private $roles;
public function getId(): ?int
{
return $this->id;
}
public function setId(?int $id): self
{
$this->id = $id;
return $this;
}
public function getAble(): ?bool
{
return $this->able;
}
public function setAble(?bool $able): self
{
$this->able = $able;
return $this;
}
public function getCategoriesId(): ?categories
{
return $this->categories;
}
public function setCategoriesId(?categories $categories): self
{
$this->categories = $categories;
return $this;
}
public function getRolesId(): ?roles
{
return $this->roles;
}
public function setRolesId(?roles $roles): self
{
$this->roles = $roles;
return $this;
}
}