__construct() public method

public __construct ( array $settings = [] )
$settings array
コード例 #1
0
 public function __construct(array $settings = array())
 {
     parent::__construct($settings);
     $this->minRange = isset($settings['min']) ? $settings['min'] : ~PHP_INT_MAX;
     $this->maxRange = isset($settings['max']) ? $settings['max'] : PHP_INT_MAX;
 }
コード例 #2
0
 public function __construct(array $settings = array())
 {
     parent::__construct($settings);
     $this->minRange = isset($settings['min']) ? $settings['min'] : 0;
     $this->maxRange = isset($settings['max']) ? $settings['max'] : 255;
 }