This commit is contained in:
Romain Neutron
2012-04-26 00:55:53 +02:00
parent edbfff226e
commit ade22295ad
631 changed files with 92375 additions and 101763 deletions

View File

@@ -17,56 +17,54 @@
*/
class Setup_Constraint
{
protected $name;
protected $success;
protected $message;
protected $blocker;
protected $name;
protected $success;
protected $message;
protected $blocker;
public function __construct($name, $success, $message, $blocker = false)
{
$this->name = $name;
$this->success = ! ! $success;
$this->message = $message;
$this->blocker = ! ! $blocker;
public function __construct($name, $success, $message, $blocker = false)
{
$this->name = $name;
$this->success = !!$success;
$this->message = $message;
$this->blocker = !!$blocker;
return $this;
}
return $this;
}
/**
*
* @return string
*/
public function get_name()
{
return $this->name;
}
/**
*
* @return string
*/
public function get_name()
{
return $this->name;
}
/**
*
* @return boolean
*/
public function is_ok()
{
return $this->success;
}
/**
*
* @return boolean
*/
public function is_ok()
{
return $this->success;
}
/**
*
* @return boolean
*/
public function is_blocker()
{
return $this->blocker;
}
/**
*
* @return string
*/
public function get_message()
{
return $this->message;
}
/**
*
* @return boolean
*/
public function is_blocker()
{
return $this->blocker;
}
/**
*
* @return string
*/
public function get_message()
{
return $this->message;
}
}