コード例 #1
0
ファイル: DirectoryNode.php プロジェクト: kegi/dictionary
 /**
  * @param string $item
  *
  * @return bool
  */
 public function has($item)
 {
     if (!$this->isLoaded()) {
         $this->load();
     }
     return parent::has($item);
 }
コード例 #2
0
ファイル: EntryNode.php プロジェクト: kegi/dictionary
 /**
  * @param string                     $path
  * @param FileSystemHandlerInterface $fileSystemHandlerInterface
  * @param string|null                $value
  */
 public function __construct($path, FileSystemHandlerInterface $fileSystemHandlerInterface, $value)
 {
     parent::__construct($path, $fileSystemHandlerInterface);
     $this->setValue($value);
 }
コード例 #3
0
ファイル: KeyValueNode.php プロジェクト: kegi/dictionary
 /**
  * @param string                     $path
  * @param FileSystemHandlerInterface $fileSystemHandlerInterface
  * @param array                      $values
  */
 public function __construct($path, FileSystemHandlerInterface $fileSystemHandlerInterface, array $values)
 {
     parent::__construct($path, $fileSystemHandlerInterface);
     $this->applyValue($values);
 }