mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Add typehints and reduce code duplication
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Media\Subdef;
|
||||
|
||||
use MediaAlchemyst\Specification\SpecificationInterface;
|
||||
|
||||
interface Subdef
|
||||
{
|
||||
const TYPE_IMAGE = 'image';
|
||||
@@ -19,9 +21,20 @@ interface Subdef
|
||||
const TYPE_AUDIO = 'audio';
|
||||
const TYPE_FLEXPAPER = 'flexpaper';
|
||||
|
||||
/**
|
||||
* One of Subdef Type const
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription();
|
||||
|
||||
/**
|
||||
* @return SpecificationInterface
|
||||
*/
|
||||
public function getMediaAlchemystSpec();
|
||||
}
|
||||
|
Reference in New Issue
Block a user