Файл: concrete5.7.5.6/concrete/vendor/punic/punic/code/Exception/NotImplemented.php
Строк: 66
<?php
namespace PunicException;
/**
* An exception raised when a function meets an argument of an unsupported type.
*/
class NotImplemented extends PunicException
{
protected $function;
/**
* Initializes the instance.
*
* @param string $function The function/method that's not implemented
* @param Exception $previous The previous exception used for the exception chaining
*/
public function __construct($function, $previous = null)
{
$this->function = $function;
$message = "$function is not implemented";
parent::__construct($message, PunicException::NOT_IMPLEMENTED, $previous);
}
/**
* Retrieves the name of the not implemented function/method.
*
* @return string
*/
public function getFunction()
{
return $this->function;
}
}