PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.7.3
Independent Analytics – WordPress Analytics Plugin v2.7.3
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / vendor / illuminate / database / ClassMorphViolationException.php
ClassMorphViolationException.php
27 lines 550 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IAWPSCOPED\Illuminate\Database;
4
5 use RuntimeException;
6 /** @internal */
7 class ClassMorphViolationException extends RuntimeException
8 {
9 /**
10 * The name of the affected Eloquent model.
11 *
12 * @var string
13 */
14 public $model;
15 /**
16 * Create a new exception instance.
17 *
18 * @param object $model
19 */
20 public function __construct($model)
21 {
22 $class = \get_class($model);
23 parent::__construct("No morph map defined for model [{$class}].");
24 $this->model = $class;
25 }
26 }
27