Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/src/CoreBundle/Entity/Room.php

160 lines
2.8 KiB

<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Room.
*
* @ORM\Table(name="room")
* @ORM\Entity
*/
class Room
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
protected int $id;
/**
* @Assert\NotBlank()
* @ORM\Column(name="title", type="string", length=255)
*/
protected string $title;
/**
* @ORM\Column(name="description", type="text", nullable=true)
*/
protected ?string $description = null;
/**
* @ORM\Column(name="geolocation", type="string", length=255, nullable=true, unique=false)
*/
protected ?string $geolocation = null;
/**
* @ORM\Column(name="ip", type="string", length=39, nullable=true, unique=false)
*/
protected ?string $ip = null;
/**
* @ORM\Column(name="ip_mask", type="string", length=6, nullable=true, unique=false)
*/
protected ?string $ipMask = null;
/**
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\BranchSync")
* @ORM\JoinColumn(name="branch_id", referencedColumnName="id")
*/
protected BranchSync $branch;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
/**
* Get title.
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
/**
* @return string
*/
public function getGeolocation()
{
return $this->geolocation;
}
public function setGeolocation(string $geolocation): self
{
$this->geolocation = $geolocation;
return $this;
}
/**
* @return string
*/
public function getIp()
{
return $this->ip;
}
public function setIp(string $ip): self
{
$this->ip = $ip;
return $this;
}
/**
* @return string
*/
public function getIpMask()
{
return $this->ipMask;
}
public function setIpMask(string $ipMask): self
{
$this->ipMask = $ipMask;
return $this;
}
/**
* @return BranchSync
*/
public function getBranch()
{
return $this->branch;
}
public function setBranch(BranchSync $branch): self
{
$this->branch = $branch;
return $this;
}
}