MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / fields

Method fields

benches/fixtures/yii/Model.php:987–992  ·  view source on GitHub ↗

* Returns the list of fields that should be returned by default by [[toArray()]] when no specific fields are specified. * * A field is a named element in the returned array by [[toArray()]]. * * This method should return an array of field names or field definitions. * If the former, the field name will be treated as an object property name whose value will be used * a

()

Source from the content-addressed store, hash-verified

985 * @see toArray()
986 */
987 public function fields()
988 {
989 $fields = $this->attributes();
990
991 return array_combine($fields, $fields);
992 }
993
994 /**
995 * Returns an iterator for traversing the attributes in the model.

Callers

nothing calls this directly

Calls 1

attributesMethod · 0.95

Tested by

no test coverage detected