Nelmio\Alice\Definition\RangeName::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $name, integer $from, integer $to )
$name string
$from integer
$to integer
    public function __construct(string $name, int $from, int $to)
    {
        if ($from > $to) {
            list($to, $from) = [$from, $to];
        }
        $this->name = $name;
        $this->from = $from;
        $this->to = $to;
    }