php code fix

This commit is contained in:
nobohan
2022-01-19 11:09:02 +01:00
parent 9f7f6e33e8
commit 175fa7bf2f
2 changed files with 28 additions and 29 deletions

View File

@@ -113,15 +113,6 @@ class AccompanyingPeriod implements
*/
public const STEP_DRAFT = 'DRAFT';
/**
* @ORM\ManyToOne(
* targetEntity=UserJob::class
* )
* @Groups({"read", "write"})
*/
private ?UserJob $job = null;
/**
* @ORM\ManyToOne(
* targetEntity=Address::class
@@ -208,6 +199,14 @@ class AccompanyingPeriod implements
*/
private $intensity = self::INTENSITY_OCCASIONAL;
/**
* @ORM\ManyToOne(
* targetEntity=UserJob::class
* )
* @Groups({"read", "write"})
*/
private ?UserJob $job = null;
/**
* @var DateTime
*
@@ -404,18 +403,6 @@ class AccompanyingPeriod implements
return $array;
}
public function getJob(): ?UserJob
{
return $this->job;
}
public function setJob(?UserJob $job): self
{
$this->job = $job;
return $this;
}
public function addComment(Comment $comment): self
{
$this->comments[] = $comment;
@@ -647,6 +634,11 @@ class AccompanyingPeriod implements
return $this->intensity;
}
public function getJob(): ?UserJob
{
return $this->job;
}
/**
* Get the location, taking precedence into account.
*
@@ -1080,6 +1072,13 @@ class AccompanyingPeriod implements
return $this;
}
public function setJob(?UserJob $job): self
{
$this->job = $job;
return $this;
}
/**
* Set openingDate.
*