Base
This commit is contained in:
16
app/Exception/PropertyNotFound.php
Normal file
16
app/Exception/PropertyNotFound.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace App\Exception;
|
||||
|
||||
class PropertyNotFound extends \LogicException
|
||||
{
|
||||
protected $class;
|
||||
protected $property;
|
||||
|
||||
public function __construct($class, $property)
|
||||
{
|
||||
$this->class = $class;
|
||||
$this->property = $property;
|
||||
$msg = "Property '" . $property . "' for class '" . $class . "' not found.";
|
||||
parent::__construct($msg);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user