|
@@ -1,4 +1,5 @@
|
|
|
<?php
|
|
|
+/* For licensing terms, see /license.txt */
|
|
|
|
|
|
namespace Chamilo\CoreBundle\Entity;
|
|
|
|
|
@@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
|
|
|
*/
|
|
|
class Chat
|
|
|
{
|
|
|
+ /**
|
|
|
+ * @var integer
|
|
|
+ *
|
|
|
+ * @ORM\Column(name="id", type="integer")
|
|
|
+ * @ORM\Id
|
|
|
+ * @ORM\GeneratedValue()
|
|
|
+ */
|
|
|
+ private $id;
|
|
|
+
|
|
|
/**
|
|
|
* @var integer
|
|
|
*
|
|
@@ -48,15 +58,14 @@ class Chat
|
|
|
private $recd;
|
|
|
|
|
|
/**
|
|
|
- * @var integer
|
|
|
+ * Get id
|
|
|
*
|
|
|
- * @ORM\Column(name="id", type="integer")
|
|
|
- * @ORM\Id
|
|
|
- * @ORM\GeneratedValue(strategy="IDENTITY")
|
|
|
+ * @return integer
|
|
|
*/
|
|
|
- private $id;
|
|
|
-
|
|
|
-
|
|
|
+ public function getId()
|
|
|
+ {
|
|
|
+ return $this->id;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Set fromUser
|
|
@@ -172,14 +181,4 @@ class Chat
|
|
|
{
|
|
|
return $this->recd;
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * Get id
|
|
|
- *
|
|
|
- * @return integer
|
|
|
- */
|
|
|
- public function getId()
|
|
|
- {
|
|
|
- return $this->id;
|
|
|
- }
|
|
|
}
|