src/Charcoal/Property/StorablePropertyTrait.php
public function fields($val)
    {
        if (empty($this->fields)) {
            $this->generateFields($val);
        } else {
            $this->updatedFields($val);
        }

        return $this->fields;
    }
public function fields($val)
    {
        if (empty($this->fields)) {
            $this->generateFields($val);
        } else {
            $this->updatedFields($val);
        }

        return $this->fields;
    }
public function fields ( $ val ) { if ( empty ( $ this -> fields ) ) { $ this -> generateFields ( $ val ) ; } else { $ this -> updatedFields ( $ val ) ; } return $ this -> fields ; }
Retrieve the property's storage fields.

@param  mixed $val The value to set as field value.
@return PropertyField[]
Retrieve the property s storage fields .