summaryrefslogtreecommitdiff
path: root/src/Entity/Scorm.php
diff options
context:
space:
mode:
authorKhaled Lela <eng.khaled.lela@gmail.com>2022-02-10 01:17:43 +0200
committerKhaled Lela <eng.khaled.lela@gmail.com>2022-02-10 01:17:43 +0200
commitf658708e0ba11ced12a395b848cc13771db2628b (patch)
tree5f5e1a68c071ad9c02bf79e077001d8e4355a710 /src/Entity/Scorm.php
parent9e6f0a90b6b99d7a08fbe07ecd9c304b825f3a16 (diff)
update scorm model
Diffstat (limited to 'src/Entity/Scorm.php')
-rw-r--r--src/Entity/Scorm.php35
1 files changed, 25 insertions, 10 deletions
diff --git a/src/Entity/Scorm.php b/src/Entity/Scorm.php
index 4095986..48fd711 100644
--- a/src/Entity/Scorm.php
+++ b/src/Entity/Scorm.php
@@ -3,9 +3,6 @@
namespace Peopleaps\Scorm\Entity;
-
-use Doctrine\Common\Collections\ArrayCollection;
-
class Scorm
{
const SCORM_12 = 'scorm_12';
@@ -13,8 +10,9 @@ class Scorm
public $uuid;
public $id;
+ public $title;
public $version;
- public $hashName;
+ public $entryUrl;
public $ratio = 56.25;
public $scos;
public $scoSerializer;
@@ -70,17 +68,33 @@ class Scorm
/**
* @return string
*/
- public function getHashName()
+ public function getTitle()
+ {
+ return $this->title;
+ }
+
+ /**
+ * @param string $title
+ */
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+
+ /**
+ * @return string
+ */
+ public function getEntryUrl()
{
- return $this->hashName;
+ return $this->entryUrl;
}
/**
- * @param string $hashName
+ * @param string $title
*/
- public function setHashName($hashName)
+ public function setEntryUrl($entryUrl)
{
- $this->hashName = $hashName;
+ $this->entryUrl = $entryUrl;
}
/**
@@ -131,7 +145,8 @@ class Scorm
return [
'id' => $scorm->getUuid(),
'version' => $scorm->getVersion(),
- 'hashName' => $scorm->getHashName(),
+ 'title' => $scorm->getTitle(),
+ 'entryUrl' => $scorm->getEntryUrl(),
'ratio' => $scorm->getRatio(),
'scos' => $this->serializeScos($scorm),
];