Range::__construct PHP Method

__construct() public method

public __construct ( $min = null, $max = null )
        public function __construct($min = null, $max = null)
        {
            $this->min = $min;
            $this->max = $max;
        }

Usage Example

示例#1
0
文件: Month.php 项目: duncan3dc/dates
 /**
  * Create a new instance from a date object.
  *
  * @param DateTime $date A date within the season
  */
 public function __construct(DateTime $date)
 {
     $this->unix = $date->timestamp();
     $start = Date::mkdate($date->numeric("Y"), $date->numeric("n"), 1);
     $end = Date::mkdate($date->numeric("Y"), $date->numeric("n"), $date->numeric("t"));
     parent::__construct($start, $end);
 }
All Usage Examples Of Range::__construct