Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 150
Zeile 43... Zeile 43...
43
 
43
 
44
    /**
44
    /**
45
     * Create a new Lottery instance.
45
     * Create a new Lottery instance.
46
     *
46
     *
47
     * @param  int|float  $chances
47
     * @param  int|float  $chances
-
 
48
     * @param  int|null  $outOf
48
     * @param  ?int  $outOf
49
     * @return void
49
     */
50
     */
50
    public function __construct($chances, $outOf = null)
51
    public function __construct($chances, $outOf = null)
51
    {
52
    {
52
        if ($outOf === null && is_float($chances) && $chances > 1) {
53
        if ($outOf === null && is_float($chances) && $chances > 1) {
Zeile 60... Zeile 61...
60
 
61
 
61
    /**
62
    /**
62
     * Create a new Lottery instance.
63
     * Create a new Lottery instance.
63
     *
64
     *
64
     * @param  int|float  $chances
65
     * @param  int|float  $chances
65
     * @param  ?int  $outOf
66
     * @param  int|null  $outOf
66
     * @return static
67
     * @return static
67
     */
68
     */
68
    public static function odds($chances, $outOf = null)
69
    public static function odds($chances, $outOf = null)
69
    {
70
    {