| Conditions | 3 |
| Paths | 4 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function getUrl(string $conversionName = ''): string |
||
| 36 | { |
||
| 37 | $conversionName = $conversionName ? $conversionName : ($this->hasConversion('default') ? 'default' : null); |
||
|
|
|||
| 38 | $urlGenerator = UrlGeneratorFactory::createForMedia($this, $conversionName); |
||
| 39 | return $urlGenerator->getUrl(); |
||
| 40 | } |
||
| 41 | } |