mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-16 20:03:58 +02:00
PHP 8
This commit is contained in:
@@ -4,13 +4,8 @@ namespace DesignPatterns\Behavioral\Interpreter;
|
||||
|
||||
class OrExp extends AbstractExp
|
||||
{
|
||||
private AbstractExp $first;
|
||||
private AbstractExp $second;
|
||||
|
||||
public function __construct(AbstractExp $first, AbstractExp $second)
|
||||
public function __construct(private AbstractExp $first, private AbstractExp $second)
|
||||
{
|
||||
$this->first = $first;
|
||||
$this->second = $second;
|
||||
}
|
||||
|
||||
public function interpret(Context $context): bool
|
||||
|
Reference in New Issue
Block a user