public function __construct($value, $needle, $offset = 0)
 {
     parent::__construct($value);
     $this->needle = $needle;
     $this->offset = $offset;
 }
示例#2
0
 public function __construct($value, $needle)
 {
     parent::__construct($value);
     $this->needle = $needle;
 }
示例#3
0
 public function __construct($value, $stringToMatch, $truncateBefore = false)
 {
     parent::__construct($value);
     $this->stringToMatch = $stringToMatch;
     $this->truncateBefore = $truncateBefore;
 }
 public function __construct($value, $needle, $beforeNeedle = false)
 {
     parent::__construct($value);
     $this->needle = $needle;
     $this->beforeNeedle = $beforeNeedle;
 }