1 | <?php |
||
25 | class UrlFinder implements Analyser |
||
26 | { |
||
27 | /** |
||
28 | * @var Model |
||
29 | */ |
||
30 | private $entity; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $table; |
||
36 | |||
37 | /** |
||
38 | * UrlAnalyser constructor. |
||
39 | */ |
||
40 | public function __construct() |
||
45 | |||
46 | /** |
||
47 | * @return $this|Analyser |
||
48 | * @throws \Exception |
||
49 | */ |
||
50 | public function clear() : Analyser |
||
55 | |||
56 | /** |
||
57 | * @param \Closure|null $progress |
||
58 | * @return $this|Analyser |
||
59 | */ |
||
60 | public function analyse(\Closure $progress = null) : Analyser |
||
85 | |||
86 | /** |
||
87 | * @param string $text |
||
88 | * @return mixed |
||
89 | */ |
||
90 | private function getUrls(string $text) |
||
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | public static function getPattern() |
||
107 | } |
||
108 |