mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-05-30 02:20:09 +02:00
21 lines
348 B
PHP
21 lines
348 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\AbstractFactory;
|
|
|
|
class Picture implements Media
|
|
{
|
|
protected $_path;
|
|
protected $_name;
|
|
|
|
/**
|
|
*
|
|
* @param string $path
|
|
* @param string $name
|
|
*/
|
|
public function __construct($path, $name = '')
|
|
{
|
|
$this->_name = (string) $name;
|
|
$this->_path = (string) $path;
|
|
}
|
|
}
|