MediaProviderInterface
last analyzed

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 22

2 Methods

Rating   Name   Duplication   Size   Complexity  
generateName() 0 1 ?
save() 0 1 ?
1
<?php
2
3
namespace Media\Provider;
4
5
use Media\Entity\MediaInterface;
6
use Symfony\Component\HttpFoundation\File\UploadedFile;
7
8
interface MediaProviderInterface
9
{
10
11
    /**
12
     * 
13
     * @param UploadedFile $file
14
     * @param string $directory
15
     * 
16
     * @return string
17
     */
18
    public function generateName(UploadedFile $file, $directory);
19
20
    /**
21
     * 
22
     * @param MediaInterface $media
23
     * @param string $class
24
     * @param array $options
25
     * 
26
     * @return MediaInterface
27
     */
28
    public function save(MediaInterface $media, $class, $options);
29
}
30