Range::__construct PHP 메소드

__construct() 공개 메소드

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