AnimateTransform::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\animation;
3
4
use nstdio\svg\attributes\ConditionalProcessing;
5
use nstdio\svg\attributes\ExternalResourcesRequired;
6
use nstdio\svg\attributes\FullyAnimatable;
7
use nstdio\svg\attributes\XLink;
8
9
/**
10
 * Class AnimateTransform
11
 * The 'animateTransform' element animates a transformation attribute on a target element, thereby allowing animations
12
 * to control translation, scaling, rotation and/or skewing.
13
 *
14
 * @link    https://www.w3.org/TR/SVG/animate.html#AnimateTransformElement
15
 *
16
 * @property string type = "translate | scale | rotate | skewX | skewY". Indicates the type of transformation which is
17
 *           to have its values change over time. If the attribute is not specified, then the effect is as if a value
18
 *           of 'translate' were specified.
19
 *
20
 * @package nstdio\svg\animation
21
 * @author  Edgar Asatryan <[email protected]>
22
 */
23
class AnimateTransform extends BaseAnimation implements FullyAnimatable, ConditionalProcessing, XLink, ExternalResourcesRequired
24
{
25 1
    public function getName()
26
    {
27 1
        return 'animateTransform';
28
    }
29
}