/** * 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); } }
/** * Get registered class name * @param string $type * @return void */ public function getRegisteredClass($type) { return H::arrayGet($this->classes, $type, false); }
protected function getKey($type) { return H::arrayGet($this->keys, $type); }
public function testArrayGet() { $name = H::arrayGet($this->array, 'name'); $this->assertEquals('John', $name); }
/** * Get value of PK * @return mixed */ public function getKey() { return H::arrayGet($this->attributes, static::$key); }