mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-11-03 18:58:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			99 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
declare(strict_types=1);
 | 
						|
 | 
						|
/*
 | 
						|
 * 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\ActivityBundle\Entity;
 | 
						|
 | 
						|
use Doctrine\ORM\Mapping as ORM;
 | 
						|
use Symfony\Component\Serializer\Annotation as Serializer;
 | 
						|
 | 
						|
/**
 | 
						|
 * Class ActivityPresence.
 | 
						|
 *
 | 
						|
 * @ORM\Entity
 | 
						|
 *
 | 
						|
 * @ORM\Table(name="activitytpresence")
 | 
						|
 *
 | 
						|
 * @ORM\HasLifecycleCallbacks
 | 
						|
 */
 | 
						|
class ActivityPresence
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @ORM\Column(type="boolean")
 | 
						|
     */
 | 
						|
    private bool $active = true;
 | 
						|
 | 
						|
    /**
 | 
						|
     * @ORM\Id
 | 
						|
     *
 | 
						|
     * @ORM\Column(name="id", type="integer")
 | 
						|
     *
 | 
						|
     * @ORM\GeneratedValue(strategy="AUTO")
 | 
						|
     *
 | 
						|
     * @Serializer\Groups({"docgen:read"})
 | 
						|
     */
 | 
						|
    private ?int $id = null;
 | 
						|
 | 
						|
    /**
 | 
						|
     * @ORM\Column(type="json")
 | 
						|
     *
 | 
						|
     * @Serializer\Groups({"docgen:read"})
 | 
						|
     *
 | 
						|
     * @Serializer\Context({"is-translatable": true}, groups={"docgen:read"})
 | 
						|
     */
 | 
						|
    private array $name = [];
 | 
						|
 | 
						|
    /**
 | 
						|
     * Get active
 | 
						|
     * return true if the category type is active.
 | 
						|
     */
 | 
						|
    public function getActive(): bool
 | 
						|
    {
 | 
						|
        return $this->active;
 | 
						|
    }
 | 
						|
 | 
						|
    public function getId(): int
 | 
						|
    {
 | 
						|
        return $this->id;
 | 
						|
    }
 | 
						|
 | 
						|
    public function getName(): array
 | 
						|
    {
 | 
						|
        return $this->name;
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Is active
 | 
						|
     * return true if the category type is active.
 | 
						|
     */
 | 
						|
    public function isActive(): bool
 | 
						|
    {
 | 
						|
        return $this->getActive();
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Set active
 | 
						|
     * set to true if the category type is active.
 | 
						|
     */
 | 
						|
    public function setActive(bool $active): self
 | 
						|
    {
 | 
						|
        $this->active = $active;
 | 
						|
 | 
						|
        return $this;
 | 
						|
    }
 | 
						|
 | 
						|
    public function setName(array $name): self
 | 
						|
    {
 | 
						|
        $this->name = $name;
 | 
						|
 | 
						|
        return $this;
 | 
						|
    }
 | 
						|
}
 |