Completed
Push — master ( 837ac6...83f19b )
by Oscar
02:03
created

Schema::generateTags()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace SocialLinks\Metas;
4
5
class Schema extends MetaBase implements MetaInterface
6
{
7
    const META_ATTRIBUTE_NAME = 'itemprop';
8
9
    protected static $characterLimits = [
10
        'description' => 200,
11
    ];
12
13
    /**
14
     * {@inheritdoc}
15
     */
16
    protected function generateTags()
17
    {
18
        $this->addMetas($this->page->get(array(
19
            'title' => 'name',
20
            'text' => 'description',
21
            'image',
22
        )));
23
    }
24
}
25