diff options
author | devianl2 <devianleong@gmail.com> | 2022-02-11 12:39:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 12:39:14 +0800 |
commit | 2c643200d419e1ffae72eb8fb7c392a057a0c9b9 (patch) | |
tree | f5f792b1775c82e103f492a25cce3c1234f8b4e7 /src/Entity | |
parent | 3da455045032735b1cab91a575c43fa064bc022f (diff) |
Revert "Revert "Improve SCORM disk storage handler""
Diffstat (limited to 'src/Entity')
-rw-r--r-- | src/Entity/Scorm.php | 35 |
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), ]; |