1 | <?php |
||
7 | class PHPHtmlDom |
||
8 | { |
||
9 | /** |
||
10 | * Objeto que permite convertir un selector css en un path. |
||
11 | * @var \Symfony\Component\CssSelector\CssSelector |
||
12 | */ |
||
13 | private $selector; |
||
14 | |||
15 | /** |
||
16 | * Objeto que permite escribir logs. |
||
17 | * @var \PHPTools\PHPHtmlDom\Core\PHPHtmlDomLog |
||
18 | */ |
||
19 | private $logger; |
||
20 | |||
21 | /** |
||
22 | * Objeto nativo de php que permite crear un documento DOM. |
||
23 | * @var \DOMDocument |
||
24 | */ |
||
25 | private $dom; |
||
26 | |||
27 | /** |
||
28 | * Objeto nativo de php que permite buscar un xpath dentro de un documento DOM. |
||
29 | * @var \DOMXPath |
||
30 | */ |
||
31 | private $xpath; |
||
32 | |||
33 | /** |
||
34 | * Objeto que permite importar el contennido html. |
||
35 | * @var \PHPTools\PHPHtmlDom\Core\PHPHtmlDomImportHtml |
||
36 | */ |
||
37 | private $importer; |
||
38 | |||
39 | /** |
||
40 | * Contenido crudo html. |
||
41 | * @var string |
||
42 | */ |
||
43 | private $html_content; |
||
44 | |||
45 | public function __construct() |
||
56 | |||
57 | /** |
||
58 | * Metodo que importa y convierte el contenido html en un objeto DOM. |
||
59 | * @param string $text_html Cadena de texto con la url, path, texto html. |
||
60 | * @return boolean |
||
61 | */ |
||
62 | final public function importHTML($text_html) |
||
81 | |||
82 | /** |
||
83 | * Metodo que permite buscar elementos hijos a partir de un selector css. |
||
84 | * @param string $css_selector Cadena de texto con el selector css. |
||
85 | * @return PHPTools\PHPHtmlDom\Core\PHPHtmlDomList |
||
86 | */ |
||
87 | final public function e($css_selector) |
||
96 | |||
97 | /** |
||
98 | * Permite importar el contenido dom del texto html. |
||
99 | * @return boolean |
||
100 | */ |
||
101 | private function domImport() |
||
116 | |||
117 | /** |
||
118 | * Metodo que convierte un selector css en un xpath |
||
119 | * @param string $css_selector Cadena de texto con el selector css. |
||
120 | * @return string|NULL Devuelve una cadena de texto con formato xpath si la converción e sposible o NULL en caso contrario. |
||
121 | */ |
||
122 | private function toXPath($css_selector) |
||
138 | } |
||
139 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..