1 | <?php |
||
9 | class LinkConverter implements ConverterInterface, ConfigurationAwareInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var Configuration |
||
13 | */ |
||
14 | 6 | protected $config; |
|
15 | |||
16 | 6 | /** |
|
17 | 6 | * @param Configuration $config |
|
18 | 6 | */ |
|
19 | public function setConfig(Configuration $config) { |
||
22 | 6 | ||
23 | 3 | /** |
|
24 | 6 | * @param ElementInterface $element |
|
25 | 3 | * |
|
26 | * @return string |
||
27 | 6 | */ |
|
28 | public function convert(ElementInterface $element) |
||
53 | 6 | ||
54 | /** |
||
55 | 6 | * @return string[] |
|
56 | */ |
||
57 | public function getSupportedTags() |
||
61 | |||
62 | /** |
||
63 | 3 | * @param string $href |
|
64 | * |
||
65 | * @return bool |
||
66 | 3 | */ |
|
67 | private function isValidAutolink($href) |
||
72 | |||
73 | /** |
||
74 | * @param string $email |
||
75 | * |
||
76 | * @return bool |
||
77 | */ |
||
78 | private function isValidEmail($email) |
||
83 | } |
||
84 |