protected function arrayValue($key, $arrayKey, $value = null)
    {
        $array = $this[$key];
        $is = is_array($array);
        if (null !== $value) {
            if (!$is) {
                $array = array_key_exists($key, self::DEFAULTS)
                    ?self::DEFAULTS[$key]
                    :$this::DEFAULTS[$key];
            }
            $array[$arrayKey] = $value;
            $this[$key] = $array;
            return null;
        } else {
            return $is && isset($array[$arrayKey])
                ?$array[$arrayKey]
                :null;
        }
    }
protected function arrayValue($key, $arrayKey, $value = null)
    {
        $array = $this[$key];
        $is = is_array($array);
        if (null !== $value) {
            if (!$is) {
                $array = array_key_exists($key, self::DEFAULTS)
                    ?self::DEFAULTS[$key]
                    :$this::DEFAULTS[$key];
            }
            $array[$arrayKey] = $value;
            $this[$key] = $array;
            return null;
        } else {
            return $is && isset($array[$arrayKey])
                ?$array[$arrayKey]
                :null;
        }
    }
protected function arrayValue ( $ key , $ arrayKey , $ value = null ) { $ array = $ this [ $ key ] ; $ is = is_array ( $ array ) ; if ( null !== $ value ) { if ( ! $ is ) { $ array = array_key_exists ( $ key , self :: DEFAULTS ) ? self :: DEFAULTS [ $ key ] : $ this :: DEFAULTS [ $ key ] ; } $ array [ $ arrayKey ] = $ value ; $ this [ $ key ] = $ array ; return null ; } else { return $ is && isset ( $ array [ $ arrayKey ] ) ? $ array [ $ arrayKey ] : null ; } }
Allow to set an array value in the collection
@param  string $key      Key to retrieve the array in the collection
@param  string $arrayKey Array key to set
@param  mixed  $value    Value to be set or null
@return mixed
Allow to set an array value in the collection