for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Sulu.
*
* (c) MASSIVE ART WebServices GmbH
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\ArticleBundle\Exception;
/**
* Thrown when parameter is not allowed.
class ParameterNotAllowedException extends \Exception
{
* @var string
private $property;
private $class;
* @param string $property
* @param string $class
public function __construct($property, $class)
parent::__construct(sprintf('Parameter "%s" is not allowed for class "%s".', $property, $class));
$this->property = $property;
$this->class = $class;
}
* Returns property.
* @return string
public function getProperty()
return $this->property;
* Returns class.
public function getClass()
return $this->class;