www.gusucode.com > KPPW众包威客PHP开源建站系统 v3.0源码程序 > KPPW/vendor/phpspec/phpspec/src/PhpSpec/Exception/Fracture/PropertyNotFoundException.php
<?php /* * This file is part of PhpSpec, A php toolset to drive emergent * design by specification. * * (c) Marcello Duarte <marcello.duarte@gmail.com> * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PhpSpec\Exception\Fracture; /** * Class PropertyNotFoundException holds information about property not found * exceptions */ class PropertyNotFoundException extends FractureException { /** * @var mixed */ private $subject; /** * @var string */ private $property; /** * @param string $message * @param mixed $subject * @param string $property */ public function __construct($message, $subject, $property) { parent::__construct($message); $this->subject = $subject; $this->property = $property; } /** * @return mixed */ public function getSubject() { return $this->subject; } /** * @return string */ public function getProperty() { return $this->property; } }