src/Charcoal/Property/IpProperty.php
public function storageVal($val)
    {
        $mode = $this->storageMode();

        if ($mode === self::STORAGE_MODE_INT) {
            return $this->intVal($val);
        } else {
            return $this->stringVal($val);
        }
    }
public function storageVal($val)
    {
        $mode = $this->storageMode();

        if ($mode === self::STORAGE_MODE_INT) {
            return $this->intVal($val);
        } else {
            return $this->stringVal($val);
        }
    }
public function storageVal ( $ val ) { $ mode = $ this -> storageMode ( ) ; if ( $ mode === self :: STORAGE_MODE_INT ) { return $ this -> intVal ( $ val ) ; } else { return $ this -> stringVal ( $ val ) ; } }
Get the IP value in the suitable format for storage.

@param mixed $val The value to convert to string.
@see StorablePropertyTrait::storageVal()
@return string
Get the IP value in the suitable format for storage .