Joli\GifExceptionBundle\EventListener\ReplaceImageListener::getRandomGif PHP 메소드

getRandomGif() 개인적인 메소드

Return a random gif name for the given directory.
private getRandomGif ( string $dir ) : string
$dir string
리턴 string
    private function getRandomGif($dir)
    {
        $imageIndex = rand(0, count($this->gifs[$dir]) - 1);
        return $this->gifs[$dir][$imageIndex];
    }