public function isAvailable(Media $media, \DateTime $time)
    {
        return $this->between($time, $media->getAvailableDate(), $media->getExpirationDate());
    }
public function isAvailable(Media $media, \DateTime $time)
    {
        return $this->between($time, $media->getAvailableDate(), $media->getExpirationDate());
    }
public function isAvailable ( Media $ media , \ DateTime $ time ) { return $ this -> between ( $ time , $ media -> getAvailableDate ( ) , $ media -> getExpirationDate ( ) ) ; }
Return if the media is available as of the given time.

@param Media $media
@param       $time

@return bool
Return if the media is available as of the given time .