예제 #1
0
 function __construct($string, $start = 0, $end = false)
 {
     parent::__construct($string);
     $this->start = $start;
     $this->end = $end;
     $this->length = $end ? $end - $start : $this->length - $start;
 }
예제 #2
0
 /**
  * TeraBytes constructor.
  * @param integer $teraBytes
  */
 protected function __construct($teraBytes)
 {
     $this->assertCorrectByteValue($teraBytes);
     parent::__construct((int) $teraBytes * 1024 * 1024 * 1024 * 1024);
 }
예제 #3
0
파일: Unicode.php 프로젝트: iHunt101/phlite
 function __construct($text, $encoding = false)
 {
     parent::__construct($text);
     $this->encoding = $encoding ?: self::$default_encoding;
 }