mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 01:02:25 +01:00
21 lines
383 B
PHP
21 lines
383 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\AbstractFactory;
|
|
|
|
/**
|
|
* Interface MediaInterface
|
|
*
|
|
* This contract is not part of the pattern, in general case, each component
|
|
* are not related
|
|
*/
|
|
interface MediaInterface
|
|
{
|
|
|
|
/**
|
|
* some crude rendering from JSON or html output (depended on concrete class)
|
|
*
|
|
* @return string
|
|
*/
|
|
public function render();
|
|
}
|