src/Charcoal/Property/StorablePropertyTrait.php
private function fieldVal($fieldIdent, $val)
    {
        if ($val === null) {
            return null;
        }

        if (is_scalar($val)) {
            return $this->storageVal($val);
        }

        if (isset($val[$fieldIdent])) {
            return $this->storageVal($val[$fieldIdent]);
        } else {
            return null;
        }
    }
private function fieldVal($fieldIdent, $val)
    {
        if ($val === null) {
            return null;
        }

        if (is_scalar($val)) {
            return $this->storageVal($val);
        }

        if (isset($val[$fieldIdent])) {
            return $this->storageVal($val[$fieldIdent]);
        } else {
            return null;
        }
    }
private function fieldVal ( $ fieldIdent , $ val ) { if ( $ val === null ) { return null ; } if ( is_scalar ( $ val ) ) { return $ this -> storageVal ( $ val ) ; } if ( isset ( $ val [ $ fieldIdent ] ) ) { return $ this -> storageVal ( $ val [ $ fieldIdent ] ) ; } else { return null ; } }
Retrieve the value of the property's given storage field.

@param  string $fieldIdent The property field identifier.
@param  mixed  $val        The value to set as field value.
@return mixed
Retrieve the value of the property s given storage field .