chill-bundles/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowStepHold.php
2024-09-05 17:13:20 +02:00

61 lines
1.3 KiB
PHP

<?php
namespace Chill\MainBundle\Entity\Workflow;
use Chill\MainBundle\Doctrine\Model\TrackCreationInterface;
use Chill\MainBundle\Doctrine\Model\TrackCreationTrait;
use Chill\MainBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table('chill_main_workflow_entity_step_hold')]
class EntityWorkflowStepHold implements TrackCreationInterface
{
use TrackCreationTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::INTEGER)]
private ?int $id;
#[ORM\ManyToOne(targetEntity: EntityWorkflowStep::class)]
#[ORM\JoinColumn(nullable: false)]
private EntityWorkflowStep $step;
#[ORM\ManyToOne(targetEntity: User::class)]
#[ORM\JoinColumn(nullable: false)]
private User $byUser;
public function getId(): ?int
{
return $this->id;
}
public function setId(?int $id): void
{
$this->id = $id;
}
public function getStep(): EntityWorkflowStep
{
return $this->step;
}
public function setStep(EntityWorkflowStep $step): void
{
$this->step = $step;
}
public function getByUser(): User
{
return $this->byUser;
}
public function setByUser(User $byUser): void
{
$this->byUser = $byUser;
}
}