forked from symfony-cmf/media-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MediaInterface.php
59 lines (51 loc) · 1.11 KB
/
MediaInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
* This file is part of the Symfony CMF package.
*
* (c) 2011-2014 Symfony CMF
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Cmf\Bundle\MediaBundle;
/**
* A basic interface for media objects. Be they cloud hosted or local files.
*
* This is to be kept compatible with the SonataMediaBundle MediaInterface to
* allow integration with sonata.
*/
interface MediaInterface
{
/**
* Get the unique identifier of this media element
*
* @return string
*/
public function getId();
/**
* The name of this media, e.g. for managing media documents
*
* For example an image file name.
*
* @return string
*/
public function getName();
/**
* @param $name
*
* @return void
*/
public function setName($name);
/**
* Get creation date
*
* @return \Datetime
*/
public function getCreatedAt();
/**
* Get last update date
*
* @return \Datetime
*/
public function getUpdatedAt();
}