Exemple #1
0
 /**
  * Get meta data, key support dot notation levels
  * @param  string $key
  * @return mixed
  */
 public function getMeta($key = null)
 {
     if (!is_array($this->meta)) {
         return $this->meta;
     } else {
         return H::arrayGet($this->meta, $key);
     }
 }
Exemple #2
0
 /**
  * Get registered class name
  * @param  string $type
  * @return void
  */
 public function getRegisteredClass($type)
 {
     return H::arrayGet($this->classes, $type, false);
 }
Exemple #3
0
 protected function getKey($type)
 {
     return H::arrayGet($this->keys, $type);
 }
Exemple #4
0
 public function testArrayGet()
 {
     $name = H::arrayGet($this->array, 'name');
     $this->assertEquals('John', $name);
 }
Exemple #5
0
 /**
  * Get value of PK
  * @return mixed
  */
 public function getKey()
 {
     return H::arrayGet($this->attributes, static::$key);
 }