Convertable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A conversions() 0 3 1
1
<?php
2
3
namespace Meema\MediaConverter\Traits;
4
5
use Meema\MediaConverter\Models\MediaConversion;
6
7
trait Convertable
8
{
9
    /**
10
     * Get all of the media items' conversions.
11
     */
12
    public function conversions()
13
    {
14
        return $this->morphMany(MediaConversion::class, 'model');
15
    }
16
}
17