/ */ namespace P4\Model\Fielded; interface FieldedInterface { /** * Get the model data as an array. * * @return array the model data as an array. */ public function toArray(); /** * Check if given field is valid model field. * * @param string $field model field to check * @return boolean */ public function hasField($field); /** * Return array with all model fields. * * @return array */ public function getFields(); /** * Return value of given field of the model. * * @param string $field model field to retrieve * @return mixed */ public function get($field); }