Passed
Push — develop ( 5338a4...74435c )
by Richard
02:48
created

SvgImage::transform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
4
namespace Riclep\Storyblok\Fields;
5
6
use Riclep\Storyblok\Support\ImageTransformers\StoryblokSvg;
7
8
/**
9
 * @property boolean $focus
10
 */
11
class SvgImage extends Image
12
{
13
    /**
14
	 * Create a new or get a transformation of the image
15
	 *
16
	 * @param $tranformation
17
	 * @return mixed
18
	 */
19
    public function transform($tranformation = null): mixed
20
    {
21
        return new StoryblokSvg($this);
22
    }
23
}
24