for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Task\TaskBundle\Builder;
use Task\TaskInterface;
/**
* TODO add description here
*/
class NotSupportedException extends \Exception
{
* @var string
private $property;
* @var TaskInterface
private $task;
* @param string $property
* @param TaskInterface $task
public function __construct($property, TaskInterface $task)
parent::__construct(
sprintf('Property "%s" is not supported for task-class "%s".', $property, get_class($task))
);
$this->property = $property;
$this->task = $task;
}
* Returns property.
*
* @return string
public function getProperty()
return $this->property;
* Returns task.
* @return TaskInterface
public function getTask()
return $this->task;