mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 09:12:34 +01:00
31 lines
463 B
PHP
31 lines
463 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\AbstractFactory;
|
|
|
|
/**
|
|
* Class Picture
|
|
*/
|
|
abstract class Picture implements MediaInterface
|
|
{
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $path;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $name;
|
|
|
|
/**
|
|
* @param string $path
|
|
* @param string $name
|
|
*/
|
|
public function __construct($path, $name = '')
|
|
{
|
|
$this->name = (string) $name;
|
|
$this->path = (string) $path;
|
|
}
|
|
}
|