| 12345678910111213141516171819202122232425 |
- <?php
- declare(strict_types=1);
- namespace PHPHtmlParser\Discovery;
- use PHPHtmlParser\Contracts\Selector\SeekerInterface;
- use PHPHtmlParser\Selector\Seeker;
- class SeekerDiscovery
- {
- /**
- * @var SeekerInterface|null
- */
- private static $seeker = null;
- public static function find(): SeekerInterface
- {
- if (self::$seeker == null) {
- self::$seeker = new Seeker();
- }
- return self::$seeker;
- }
- }
|