mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 01:02:25 +01:00
30 lines
463 B
PHP
30 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;
|
|
}
|
|
}
|