Lazer\Classes\Helpers\Config::fields PHP Method

fields() public method

Return array with names of fields
public fields ( ) : array
return array
    public function fields()
    {
        return array_keys($this->getKey('schema', true));
    }

Usage Example

Beispiel #1
0
 /**
  * @covers Lazer\Classes\Helpers\Config::fields
  */
 public function testFieldIdExists()
 {
     $this->assertContains('id', $this->object->fields());
 }