ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilSimple.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Export\ImportHandler\I\File\Path\Node\ilSimpleInterface as ilSimpleFilePathNodeInterface;
24 
25 class ilSimple implements ilSimpleFilePathNodeInterface
26 {
27  protected string $node_name;
28 
29  public function __construct()
30  {
31  $this->node_name = '';
32  }
33 
34  public function withName(string $node_name): ilSimpleFilePathNodeInterface
35  {
36  $clone = clone $this;
37  $clone->node_name = $node_name;
38  return $clone;
39  }
40 
41  public function toString(): string
42  {
43  return $this->node_name;
44  }
45 
46  public function requiresPathSeparator(): bool
47  {
48  return true;
49  }
50 }