parent
f7e68c22cd
commit
b974e3797f
@ -1,89 +0,0 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\CoreBundle\Entity; |
||||
|
||||
use Doctrine\ORM\Mapping as ORM; |
||||
|
||||
/** |
||||
* ClassItem. |
||||
* |
||||
* @ORM\Table(name="class_item") |
||||
* @ORM\Entity |
||||
*/ |
||||
class ClassItem |
||||
{ |
||||
/** |
||||
* @ORM\Column(name="id", type="integer") |
||||
* @ORM\Id |
||||
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
*/ |
||||
protected int $id; |
||||
|
||||
/** |
||||
* @ORM\Column(name="code", type="string", length=40, nullable=true) |
||||
*/ |
||||
protected ?string $code = null; |
||||
|
||||
/** |
||||
* @ORM\Column(name="name", type="text", nullable=false) |
||||
*/ |
||||
protected string $name; |
||||
|
||||
/** |
||||
* Set code. |
||||
* |
||||
* @return ClassItem |
||||
*/ |
||||
public function setCode(string $code) |
||||
{ |
||||
$this->code = $code; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* Get code. |
||||
* |
||||
* @return string |
||||
*/ |
||||
public function getCode() |
||||
{ |
||||
return $this->code; |
||||
} |
||||
|
||||
/** |
||||
* Set name. |
||||
* |
||||
* @return ClassItem |
||||
*/ |
||||
public function setName(string $name) |
||||
{ |
||||
$this->name = $name; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* Get name. |
||||
* |
||||
* @return string |
||||
*/ |
||||
public function getName() |
||||
{ |
||||
return $this->name; |
||||
} |
||||
|
||||
/** |
||||
* Get id. |
||||
* |
||||
* @return int |
||||
*/ |
||||
public function getId() |
||||
{ |
||||
return $this->id; |
||||
} |
||||
} |
@ -1,76 +0,0 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\CoreBundle\Entity; |
||||
|
||||
use Doctrine\ORM\Mapping as ORM; |
||||
|
||||
/** |
||||
* ClassUser. |
||||
* |
||||
* @ORM\Table(name="class_user") |
||||
* @ORM\Entity |
||||
*/ |
||||
class ClassUser |
||||
{ |
||||
/** |
||||
* @ORM\Column(name="class_id", type="integer") |
||||
* @ORM\Id |
||||
* @ORM\GeneratedValue(strategy="NONE") |
||||
*/ |
||||
protected int $classId; |
||||
|
||||
/** |
||||
* @ORM\Column(name="user_id", type="integer") |
||||
* @ORM\Id |
||||
* @ORM\GeneratedValue(strategy="NONE") |
||||
*/ |
||||
protected int $userId; |
||||
|
||||
/** |
||||
* Set classId. |
||||
* |
||||
* @return ClassUser |
||||
*/ |
||||
public function setClassId(int $classId) |
||||
{ |
||||
$this->classId = $classId; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* Get classId. |
||||
* |
||||
* @return int |
||||
*/ |
||||
public function getClassId() |
||||
{ |
||||
return $this->classId; |
||||
} |
||||
|
||||
/** |
||||
* Set userId. |
||||
* |
||||
* @return ClassUser |
||||
*/ |
||||
public function setUserId(int $userId) |
||||
{ |
||||
$this->userId = $userId; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* Get userId. |
||||
* |
||||
* @return int |
||||
*/ |
||||
public function getUserId() |
||||
{ |
||||
return $this->userId; |
||||
} |
||||
} |
Loading…
Reference in new issue