public function __construct($needle, $haystack) { $this->needle = $needle; $this->haystack = $haystack; }