Skip to content
Snippets Groups Projects
ScormStatusSubmitted.php 586 B
Newer Older
<?php namespace XREmitter\Events;

class ScormStatusSubmitted extends ScormEvent {
David Pesce's avatar
David Pesce committed
    protected static $verbDisplay = [
        'en' => 'completed'
    ];

    /**
     * Reads data for an event.
     * @param [String => Mixed] $opts
     * @return [String => Mixed]
     * @override Event
     */
    public function read(array $opts) {
        return array_merge_recursive(parent::read($opts), [
            'verb' => [
                'id' => 'http://adlnet.gov/expapi/verbs/completed',
                'display' => $this->readVerbDisplay($opts),
            ],
        ]);
    }
}