mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-25 13:18:30 +00:00
89 lines
1.3 KiB
PHP
89 lines
1.3 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.
|
|
*
|
|
* @see https://www.champs-libres.coop/
|
|
*/
|
|
|
|
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 $id;
|
|
|
|
/**
|
|
* @var string array
|
|
* @ORM\Column(type="json_array")
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* Get id.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Get name.
|
|
*
|
|
* @return string array
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Set id.
|
|
*
|
|
* @param string $id
|
|
*
|
|
* @return MaritalStatus
|
|
*/
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set name.
|
|
*
|
|
* @param string array $name
|
|
*
|
|
* @return MaritalStatus
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
}
|