mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
82 lines
1.2 KiB
PHP
82 lines
1.2 KiB
PHP
<?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.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Chill\PersonBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* MaritalStatus.
|
|
*
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="chill_person_marital_status")
|
|
* @ORM\HasLifecycleCallbacks
|
|
*/
|
|
class MaritalStatus
|
|
{
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Id
|
|
* @ORM\Column(type="string", length=7)
|
|
*/
|
|
private ?string $id;
|
|
|
|
/**
|
|
* @ORM\Column(type="json")
|
|
*/
|
|
private array $name;
|
|
|
|
/**
|
|
* Get id.
|
|
*/
|
|
public function getId(): string
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Get name.
|
|
*
|
|
* @return string array
|
|
*/
|
|
public function getName(): array
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Set id.
|
|
*
|
|
* @return MaritalStatus
|
|
*/
|
|
public function setId(string $id): self
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set name.
|
|
*
|
|
* @param string array $name
|
|
*
|
|
* @return MaritalStatus
|
|
*/
|
|
public function setName(array $name): self
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
}
|