PHP Classes

File: src/Services/Media/MediaSelector.php

Recommend this page to a friend!
  Classes of Joseluis Laso   PHP Telegram CLI Wrapper   src/Services/Media/MediaSelector.php   Download  
File: src/Services/Media/MediaSelector.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Telegram CLI Wrapper
Send messages and other commands to Telegram users
Author: By
Last change:
Date: 8 years ago
Size: 251 bytes
 

Contents

Class file image Download
<?php

namespace TelegramCliWrapper\Services\Media;

class
MediaSelector
{

    const
MIN = 0;
    const
MAX = 15;

    public static function
getRandomPicture()
    {
        return
__DIR__ . '/images/' . rand(self::MIN, self::MAX) . '.jpg';
    }

}