Optimized for SPA

This commit is contained in:
Kevin Frantz
2019-01-05 23:52:37 +01:00
parent 9e685260e9
commit bccd6efaff
393 changed files with 253 additions and 37 deletions

View 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;
}
}