mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs: Fix code style (safe rules only).
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\CalendarBundle\Entity;
|
||||
|
||||
use Chill\CalendarBundle\Repository\CancelReasonRepository;
|
||||
@@ -11,17 +18,11 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
*/
|
||||
class CancelReason
|
||||
{
|
||||
public const CANCELEDBY_DONOTCOUNT = 'CANCELEDBY_DONOTCOUNT';
|
||||
|
||||
const CANCELEDBY_USER = 'CANCELEDBY_USER';
|
||||
const CANCELEDBY_PERSON = 'CANCELEDBY_PERSON';
|
||||
const CANCELEDBY_DONOTCOUNT = 'CANCELEDBY_DONOTCOUNT';
|
||||
public const CANCELEDBY_PERSON = 'CANCELEDBY_PERSON';
|
||||
|
||||
/**
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue
|
||||
* @ORM\Column(type="integer")
|
||||
*/
|
||||
private $id;
|
||||
public const CANCELEDBY_USER = 'CANCELEDBY_USER';
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean")
|
||||
@@ -33,19 +34,36 @@ class CancelReason
|
||||
*/
|
||||
private $canceledBy;
|
||||
|
||||
/**
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue
|
||||
* @ORM\Column(type="integer")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="json")
|
||||
*/
|
||||
private $name = [];
|
||||
|
||||
public function getActive(): ?bool
|
||||
{
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
public function getCanceledBy(): ?string
|
||||
{
|
||||
return $this->canceledBy;
|
||||
}
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getActive(): ?bool
|
||||
public function getName(): ?array
|
||||
{
|
||||
return $this->active;
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function setActive(bool $active): self
|
||||
@@ -55,11 +73,6 @@ class CancelReason
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCanceledBy(): ?string
|
||||
{
|
||||
return $this->canceledBy;
|
||||
}
|
||||
|
||||
public function setCanceledBy(string $canceledBy): self
|
||||
{
|
||||
$this->canceledBy = $canceledBy;
|
||||
@@ -67,11 +80,6 @@ class CancelReason
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getName(): ?array
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function setName(array $name): self
|
||||
{
|
||||
$this->name = $name;
|
||||
|
Reference in New Issue
Block a user