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

class EventUnenrol extends EventEnrol {
David Pesce's avatar
David Pesce committed
    protected static $verbDisplay = [
        'en' => 'unregistered from'
    ];

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