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