コード例 #1
0
 /**
  * Constructor.
  *
  * @since 2.1.0
  *
  * @param string $type
  */
 public function __construct($type)
 {
     $this->type = $type;
     self::$hours = 4;
     if (!empty($this->type->timeout)) {
         self::$hours = (double) $this->type->timeout;
     }
 }
コード例 #2
0
 /**
  * Constructor.
  *
  * @param string $type
  */
 public function __construct($type)
 {
     $this->type = $type;
     self::$hours = 12;
 }