Completed
Pull Request — master (#84)
by Daniel
09:14
created

ExpressionEvent::setExpressoin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid\Event;
6
7
use Psi\Component\Grid\Metadata\GridMetadata;
8
use Psi\Component\ObjectAgent\Query\Expression;
9
use Symfony\Component\EventDispatcher\Event;
10
11
class ExpressionEvent extends Event
12
{
13
    private $metadata;
14
    private $expression;
15
16
    public function __construct(GridMetadata $metadata, Expression $expression)
17
    {
18
        $this->metadata = $metadata;
19
        $this->expression = $expression;
20
    }
21
22
    public function getExpression(): Expression
23
    {
24
        return $this->expression;
25
    }
26
27
    public function setExpressoin(Expression $expressoin)
28
    {
29
        $this->expressoin = $expressoin;
0 ignored issues
show
Bug introduced by
The property expressoin does not seem to exist. Did you mean expression?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
30
    }
31
}
32