Learner\Services\Videos\VideoApi::setType PHP Method

setType() public method

Set Type
public setType ( string $type ) : mixed
$type string
return mixed
    public function setType($type)
    {
        switch ($type) {
            case self::YOUTUBE:
                return new Youtubee();
                break;
            case self::VIMEO:
                return new Vimeo();
                break;
            case self::YOUKU:
                return new Youku();
                break;
            default:
                throw new VideoNotFoundException("video_not_found");
        }
    }
VideoApi