Files
DesignPatternsPHP/Creational/AbstractFactory/Json/Picture.php
Antonio Spinelli e59d70a0ac start a restructure
2014-03-21 18:03:45 -03:00

24 lines
444 B
PHP

<?php
namespace DesignPatterns\AbstractFactory\Json;
use DesignPatterns\AbstractFactory\Picture as BasePicture;
/**
* Class Picture
*
* Picture is a concrete image for JSON rendering
*/
class Picture extends BasePicture
{
/**
* some crude rendering from JSON output
*
* @return string
*/
public function render()
{
return json_encode(array('title' => $this->name, 'path' => $this->path));
}
}