Exemplo n.º 1
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));
     }
 }
Exemplo n.º 2
0
 public function urlId(string $type) : array
 {
     return array_merge(parent::id($type), ['required' => true, 'location' => self::URL, 'documented' => false]);
 }
Exemplo n.º 3
0
 public function snapshotName() : array
 {
     return parent::name('snapshot') + ['type' => self::STRING_TYPE, 'location' => self::JSON];
 }
Exemplo n.º 4
0
 public function urlId($type) : array
 {
     return array_merge(parent::id($type), ['required' => true, 'location' => self::URL]);
 }