Conditions | 7 |
Paths | 33 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function configure(AbstractSeoGenerator $generator) |
||
20 | { |
||
21 | if (!($generator instanceof TwitterSeoGenerator)) { |
||
22 | throw new InvalidSeoGeneratorException(__CLASS__, TwitterSeoGenerator::class, get_class($generator)); |
||
23 | } |
||
24 | if (null !== $title = $this->getConfig('title')) { |
||
25 | $generator->setTitle($title); |
||
26 | } |
||
27 | if (null !== $description = $this->getConfig('description')) { |
||
28 | $generator->setDescription($description); |
||
29 | } |
||
30 | if (null !== $image = $this->getConfig('image')) { |
||
31 | $generator->setImage($image); |
||
32 | } |
||
33 | if (null !== $card = $this->getConfig('card')) { |
||
34 | $generator->setCard($card); |
||
35 | } |
||
36 | if (null !== $site = $this->getConfig('site')) { |
||
37 | $generator->setSite($site); |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |