Captioning\Cue::getFormat PHP Method

getFormat() public static method

public static getFormat ( captioning\CueInterface $_cue ) : mixed
$_cue captioning\CueInterface
return mixed
    public static function getFormat(CueInterface $_cue)
    {
        if (!is_subclass_of($_cue, __NAMESPACE__ . '\\Cue')) {
            throw new \InvalidArgumentException('Invalid $_cue parameter, subclass of Cue expected.');
        }
        $fullNamespace = explode('\\', get_class($_cue));
        $tmp = explode('Cue', end($fullNamespace));
        return $tmp[0];
    }