Open Data Catalog
v2.0.0
IdGenerator.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Drupal\dkan_harvest\Storage
;
4
5
use Contracts\IdGeneratorInterface;
6
12
class
IdGenerator
implements
IdGeneratorInterface {
13
19
protected
$data
;
20
24
public
function
__construct
($json) {
25
$this->data = json_decode($json);
26
}
27
31
public
function
generate
() {
32
return
isset($this->data->identifier) ? $this->data->identifier : NULL;
33
}
34
35
}
Drupal\dkan_harvest\Storage\IdGenerator\$data
$data
Definition:
IdGenerator.php:19
Drupal\dkan_harvest\Storage
Definition:
DatabaseTable.php:3
Drupal\dkan_harvest\Storage\IdGenerator
Definition:
IdGenerator.php:12
Drupal\dkan_harvest\Storage\IdGenerator\generate
generate()
Definition:
IdGenerator.php:31
Drupal\dkan_harvest\Storage\IdGenerator\__construct
__construct($json)
Definition:
IdGenerator.php:24
modules
dkan_harvest
src
Storage
IdGenerator.php
Generated by
1.8.17