FontFaceName::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace nstdio\svg\font;
3
4
/**
5
 * Class FontFaceName
6
 * The ‘font-face-name’ element is used within a ‘font-face-src’ element to reference a local font by name. It
7
 * corresponds to a local(…) clause in an @font-face rule ‘src’ descriptor.
8
 *
9
 * @property string name = "<anything>" The ‘name’ attribute specifies the name of a local font. Unlike the syntax
10
 *           allowed between the parentheses of the local(…) clause in an @font-face rule ‘src’ descriptor, the font
11
 *           name specified in this attribute is not surrounded in single or double quotes. Refer to the description of
12
 *           the 'src' descriptor in CSS2 for details on how the font name is interpreted ([CSS2], section 15.3.5).
13
 * @package nstdio\svg\font
14
 * @author  Edgar Asatryan <[email protected]>
15
 */
16
class FontFaceName extends BaseFont
17
{
18
    /**
19
     * @inheritdoc
20
     */
21 1
    public function getName()
22
    {
23 1
        return "font-face-name";
24
    }
25
26
}