mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix CS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user