FontFaceUri::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 FontFaceUri
6
 * The ‘font-face-uri’ element is used within a ‘font-face-src’ element to reference a font defined inside or outside
7
 * of the current SVG document.
8
 *
9
 * When a ‘font-face-uri’ is referencing an SVG font, then that reference must be to an SVG ‘font’ element, therefore
10
 * requiring the use of a fragment identifier [RFC3986]. The referenced ‘font’ element can be local (i.e., within the
11
 * same document as the ‘font-face-uri’ element) or remote (i.e., within a different document).
12
 *
13
 * @link    https://www.w3.org/TR/SVG11/fonts.html#FontFaceURIElement
14
 *
15
 * @property string xlink:href = "<IRI>" The ‘xlink:href’ attribute specifies the location of the referenced font.
16
 *
17
 * @package nstdio\svg\font
18
 * @author  Edgar Asatryan <[email protected]>
19
 */
20
class FontFaceUri extends BaseFont
21
{
22
    /**
23
     * @inheritdoc
24
     */
25 1
    public function getName()
26
    {
27 1
        return "font-face-uri";
28
    }
29
30
}