src/ConstraintCheck/Checker/CommonsLinkChecker.php 1 location
|
@@ 165-174 (lines=10) @@
|
162 |
|
return new CheckResult( $context, $constraint, $parameters, $status, $message ); |
163 |
|
} |
164 |
|
|
165 |
|
public function checkConstraintParameters( Constraint $constraint ) { |
166 |
|
$constraintParameters = $constraint->getConstraintParameters(); |
167 |
|
$exceptions = []; |
168 |
|
try { |
169 |
|
$this->constraintParameterParser->parseNamespaceParameter( $constraintParameters, $constraint->getConstraintTypeItemId() ); |
170 |
|
} catch ( ConstraintParameterException $e ) { |
171 |
|
$exceptions[] = $e; |
172 |
|
} |
173 |
|
return $exceptions; |
174 |
|
} |
175 |
|
|
176 |
|
/** |
177 |
|
* @param TitleValue $title |
src/ConstraintCheck/Checker/MandatoryQualifiersChecker.php 1 location
|
@@ 102-111 (lines=10) @@
|
99 |
|
return new CheckResult( $context, $constraint, $parameters, $status, $message ); |
100 |
|
} |
101 |
|
|
102 |
|
public function checkConstraintParameters( Constraint $constraint ) { |
103 |
|
$constraintParameters = $constraint->getConstraintParameters(); |
104 |
|
$exceptions = []; |
105 |
|
try { |
106 |
|
$this->constraintParameterParser->parsePropertyParameter( $constraintParameters, $constraint->getConstraintTypeItemId() ); |
107 |
|
} catch ( ConstraintParameterException $e ) { |
108 |
|
$exceptions[] = $e; |
109 |
|
} |
110 |
|
return $exceptions; |
111 |
|
} |
112 |
|
|
113 |
|
} |
114 |
|
|
src/ConstraintCheck/Checker/QualifiersChecker.php 1 location
|
@@ 115-124 (lines=10) @@
|
112 |
|
return new CheckResult( $context, $constraint, $parameters, $status, $message ); |
113 |
|
} |
114 |
|
|
115 |
|
public function checkConstraintParameters( Constraint $constraint ) { |
116 |
|
$constraintParameters = $constraint->getConstraintParameters(); |
117 |
|
$exceptions = []; |
118 |
|
try { |
119 |
|
$this->constraintParameterParser->parsePropertiesParameter( $constraintParameters, $constraint->getConstraintTypeItemId() ); |
120 |
|
} catch ( ConstraintParameterException $e ) { |
121 |
|
$exceptions[] = $e; |
122 |
|
} |
123 |
|
return $exceptions; |
124 |
|
} |
125 |
|
|
126 |
|
} |
127 |
|
|
src/ConstraintCheck/Checker/OneOfChecker.php 1 location
|
@@ 100-109 (lines=10) @@
|
97 |
|
return new CheckResult( $context, $constraint, $parameters, $status, $message ); |
98 |
|
} |
99 |
|
|
100 |
|
public function checkConstraintParameters( Constraint $constraint ) { |
101 |
|
$constraintParameters = $constraint->getConstraintParameters(); |
102 |
|
$exceptions = []; |
103 |
|
try { |
104 |
|
$this->constraintParameterParser->parseItemsParameter( $constraintParameters, $constraint->getConstraintTypeItemId(), true ); |
105 |
|
} catch ( ConstraintParameterException $e ) { |
106 |
|
$exceptions[] = $e; |
107 |
|
} |
108 |
|
return $exceptions; |
109 |
|
} |
110 |
|
|
111 |
|
} |
112 |
|
|
src/ConstraintCheck/Checker/InverseChecker.php 1 location
|
@@ 154-163 (lines=10) @@
|
151 |
|
DependencyMetadata::ofEntityId( $targetEntityId ) ) ); |
152 |
|
} |
153 |
|
|
154 |
|
public function checkConstraintParameters( Constraint $constraint ) { |
155 |
|
$constraintParameters = $constraint->getConstraintParameters(); |
156 |
|
$exceptions = []; |
157 |
|
try { |
158 |
|
$this->constraintParameterParser->parsePropertyParameter( $constraintParameters, $constraint->getConstraintTypeItemId() ); |
159 |
|
} catch ( ConstraintParameterException $e ) { |
160 |
|
$exceptions[] = $e; |
161 |
|
} |
162 |
|
return $exceptions; |
163 |
|
} |
164 |
|
|
165 |
|
} |
166 |
|
|
src/ConstraintCheck/Checker/AllowedUnitsChecker.php 1 location
|
@@ 174-187 (lines=14) @@
|
171 |
|
} |
172 |
|
} |
173 |
|
|
174 |
|
public function checkConstraintParameters( Constraint $constraint ) { |
175 |
|
$constraintParameters = $constraint->getConstraintParameters(); |
176 |
|
$exceptions = []; |
177 |
|
try { |
178 |
|
$this->constraintParameterParser->parseItemsParameter( |
179 |
|
$constraintParameters, |
180 |
|
$constraint->getConstraintTypeItemId(), |
181 |
|
true |
182 |
|
); |
183 |
|
} catch ( ConstraintParameterException $e ) { |
184 |
|
$exceptions[] = $e; |
185 |
|
} |
186 |
|
return $exceptions; |
187 |
|
} |
188 |
|
|
189 |
|
} |
190 |
|
|