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

SvgImage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A transform() 0 3 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