(Grav GitSync) Automatic Commit from GitSync
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PHPHtmlParser\Discovery;
|
||||
|
||||
use PHPHtmlParser\Contracts\Dom\CleanerInterface;
|
||||
use PHPHtmlParser\Dom\Cleaner;
|
||||
|
||||
class CleanerDiscovery
|
||||
{
|
||||
/**
|
||||
* @var Cleaner|null
|
||||
*/
|
||||
private static $parser = null;
|
||||
|
||||
public static function find(): CleanerInterface
|
||||
{
|
||||
if (self::$parser == null) {
|
||||
self::$parser = new Cleaner();
|
||||
}
|
||||
|
||||
return self::$parser;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PHPHtmlParser\Discovery;
|
||||
|
||||
use PHPHtmlParser\Contracts\Dom\ParserInterface;
|
||||
use PHPHtmlParser\Dom\Parser;
|
||||
|
||||
class DomParserDiscovery
|
||||
{
|
||||
/**
|
||||
* @var ParserInterface|null
|
||||
*/
|
||||
private static $parser = null;
|
||||
|
||||
public static function find(): ParserInterface
|
||||
{
|
||||
if (self::$parser == null) {
|
||||
self::$parser = new Parser();
|
||||
}
|
||||
|
||||
return self::$parser;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PHPHtmlParser\Discovery;
|
||||
|
||||
use PHPHtmlParser\Contracts\Selector\ParserInterface;
|
||||
use PHPHtmlParser\Selector\Parser;
|
||||
|
||||
class SelectorParserDiscovery
|
||||
{
|
||||
/**
|
||||
* @var ParserInterface|null
|
||||
*/
|
||||
private static $parser = null;
|
||||
|
||||
public static function find(): ParserInterface
|
||||
{
|
||||
if (self::$parser == null) {
|
||||
self::$parser = new Parser();
|
||||
}
|
||||
|
||||
return self::$parser;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user