/** * @param string $class * @param string $property */ public function __construct($class, $property) { parent::__construct("{$class}::{$property} is undefined"); }
/** * @param string $class * @param string $property * @param string $expected */ public function __construct($class, $property, $expected) { parent::__construct("{$class}::{$property} must be of type '{$expected}'"); }