public function __construct($value, $needle, $offset = 0)
 {
     parent::__construct($value);
     $this->needle = $needle;
     $this->offset = $offset;
 }
Exemple #2
0
 public function __construct($value, $needle)
 {
     parent::__construct($value);
     $this->needle = $needle;
 }
 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;
 }