18declare(strict_types=1);
35 DataFactory $data_factory,
38 protected C\
Input\Field\Node\NodeRetrieval $node_retrieval,
40 ?
string $byline =
null
46 $dynamic_input_template,
54 return $this->node_retrieval;
59 return static fn(
$id) =>
'';
64 if ($this->requirement_constraint !==
null) {
65 return $this->requirement_constraint;
68 return $this->
refinery->logical()->logicalOr([
69 $this->
refinery->numeric()->isNumeric(),
70 $this->refinery->string()->hasMinLength(1),
71 ])->withProblemBuilder(fn(
$txt, $value) => sprintf(
$txt(
'not_greater_than'), 0));
76 if (is_null($value)) {
79 if (!is_string($value) && !is_int($value)) {
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
A constraint encodes some resrtictions on values.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc