/** * @return FieldCollection */ public function getStaticFields() { $result = new FieldCollection(); foreach ($this as $field) { if ($field instanceof StaticField) { $result->add($field); } } return $result; }
/** * @return FieldCollection */ public function getDynamicFields() { return $this->fields->getDynamicFields(); }