public function __construct($subject, $property) { $this->subject = $subject; $this->property = $property; parent::__construct(sprintf('Property <value>%s::%s</value> not found.', get_class($subject), $property)); }