Файл: sys/library/goDB/Exceptions/Placeholder.php
Строк: 21
<?php
/**
* @package goDB
*/
namespace goDBExceptions;
/**
* Error: a placeholder from the pattern is invalid
*
* @author Oleg Grigoriev <go.vasac@gmail.com>
*/
abstract class Placeholder extends Templater
{
/**
* The error message pattern
*
* @var string
*/
protected $MESSAGE_PATTERN;
/**
* The constructor
*
* @param string $placeholder
*/
public function __construct($placeholder)
{
$message = str_replace(
'{{ placeholder }}',
$placeholder,
$this->MESSAGE_PATTERN
);
$this->placeholder = $placeholder;
parent::__construct($message);
}
/**
* @return string
*/
public function getPlaceholder()
{
return $this->placeholder;
}
/**
* @var string
*/
protected $placeholder;
}