public function __construct($value, $needle) { parent::__construct($value); $this->needle = $needle; }
public function __construct($value, $needle, $fromIndex = 0) { parent::__construct($value); $this->needle = $needle; $this->fromIndex = $fromIndex; }
public function __construct($value, $needles, $replacements) { parent::__construct($value); $this->needles = $needles; $this->replacements = $replacements; }