mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-01-14 11:06:52 +00:00
Optimized for SPA
This commit is contained in:
47
application/symfony/src/Logic/Result/Result.php
Normal file
47
application/symfony/src/Logic/Result/Result.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Logic\Result;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
class Result implements ResultInterface
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $bool;
|
||||
|
||||
/**
|
||||
* The concrete result value.
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $value;
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function getBool(): bool
|
||||
{
|
||||
return $this->bool;
|
||||
}
|
||||
|
||||
public function setBool(bool $bool): void
|
||||
{
|
||||
$this->bool = $bool;
|
||||
}
|
||||
|
||||
public function setValue($value): void
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
public function setAll($value): void
|
||||
{
|
||||
$this->bool = (bool) $value;
|
||||
$this->value = $value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user