We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 10 | public function addPropertyConstraint($property, Constraint $constraint) |
|
20 | { |
||
21 | 10 | if (!isset($this->properties[$property])) { |
|
22 | 10 | $this->properties[$property] = new PropertyMetadata($property); |
|
23 | |||
24 | 10 | $this->addPropertyMetadata($this->properties[$property]); |
|
25 | } |
||
26 | |||
27 | 10 | $constraint->addImplicitGroupName($this->getDefaultGroup()); |
|
28 | |||
29 | 10 | $this->properties[$property]->addConstraint($constraint); |
|
30 | |||
31 | 10 | return $this; |
|
32 | } |
||
41 |