forked from symfony-cmf/media-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImageInterface.php
37 lines (33 loc) · 875 Bytes
/
ImageInterface.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
<?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;
/**
* Interface for image container objects. This just adds methods to get the
* native image dimensions, but implicitly also tells applications that this
* object is suitable to view with an <img> HTML tag.
*
* This is to be kept compatible with the SonataMediaBundle MediaInterface to
* allow integration with sonata.
*/
interface ImageInterface extends FileInterface
{
/**
* Get image width in pixels
*
* @return integer
*/
public function getWidth();
/**
* Get image height in pixels
*
* @return integer
*/
public function getHeight();
}