Ejemplo n.º 1
0
 public function snapshotName()
 {
     return parent::name('snapshot') + ['type' => self::STRING_TYPE, 'location' => self::JSON];
 }
Ejemplo n.º 2
0
 public function urlId($type) : array
 {
     return array_merge(parent::id($type), ['required' => true, 'location' => self::URL]);
 }
Ejemplo n.º 3
0
 private function stockLocation(array $data)
 {
     $this->location = isset($data['location']) ? $data['location'] : self::DEFAULT_LOCATION;
     if (!AbstractParams::isSupportedLocation($this->location)) {
         throw new \RuntimeException(sprintf("%s is not a permitted location", $this->location));
     }
 }
Ejemplo n.º 4
0
 public function urlId($type)
 {
     return array_merge(parent::id($type), ['required' => true, 'location' => self::URL, 'documented' => false]);
 }
Ejemplo n.º 5
0
 public function urlId($type)
 {
     return parent::id($type) + ['required' => true, 'location' => self::URL];
 }