summaryrefslogtreecommitdiff
path: root/src/Entity/Scorm.php
diff options
context:
space:
mode:
authordevianl2 <devianleong@gmail.com>2022-02-11 12:05:29 +0800
committerGitHub <noreply@github.com>2022-02-11 12:05:29 +0800
commit3da455045032735b1cab91a575c43fa064bc022f (patch)
treeb9bc389a9734ccc9d496353205a7d859bfa7bb48 /src/Entity/Scorm.php
parent9a3d5c62ac377bfcb9e31f98275636548c4d65ea (diff)
parent359e2588a4962f51c0d5cbdd2823530a15defee0 (diff)
Merge pull request #8 from devianl2/revert-7-main
Revert "Improve SCORM disk storage handler"
Diffstat (limited to 'src/Entity/Scorm.php')
-rw-r--r--src/Entity/Scorm.php35
1 files changed, 10 insertions, 25 deletions
diff --git a/src/Entity/Scorm.php b/src/Entity/Scorm.php
index 48fd711..4095986 100644
--- a/src/Entity/Scorm.php
+++ b/src/Entity/Scorm.php
@@ -3,6 +3,9 @@
namespace Peopleaps\Scorm\Entity;
+
+use Doctrine\Common\Collections\ArrayCollection;
+
class Scorm
{
const SCORM_12 = 'scorm_12';
@@ -10,9 +13,8 @@ class Scorm
public $uuid;
public $id;
- public $title;
public $version;
- public $entryUrl;
+ public $hashName;
public $ratio = 56.25;
public $scos;
public $scoSerializer;
@@ -68,33 +70,17 @@ class Scorm
/**
* @return string
*/
- public function getTitle()
- {
- return $this->title;
- }
-
- /**
- * @param string $title
- */
- public function setTitle($title)
- {
- $this->title = $title;
- }
-
- /**
- * @return string
- */
- public function getEntryUrl()
+ public function getHashName()
{
- return $this->entryUrl;
+ return $this->hashName;
}
/**
- * @param string $title
+ * @param string $hashName
*/
- public function setEntryUrl($entryUrl)
+ public function setHashName($hashName)
{
- $this->entryUrl = $entryUrl;
+ $this->hashName = $hashName;
}
/**
@@ -145,8 +131,7 @@ class Scorm
return [
'id' => $scorm->getUuid(),
'version' => $scorm->getVersion(),
- 'title' => $scorm->getTitle(),
- 'entryUrl' => $scorm->getEntryUrl(),
+ 'hashName' => $scorm->getHashName(),
'ratio' => $scorm->getRatio(),
'scos' => $this->serializeScos($scorm),
];