<?php

namespace App\Classes\ValueObjects\Constants;


final class ContainerTypes
{

    public const TWENTY_FEET_DRY_CONTAINER = 1;
    public const FORTY_FEET_DRY_CONTAINER = 2;
    public const FORTY_FEET_HIGH_CUBE_CONTAINER = 3;
    public const FORTY_FIVE_FEET_HIGH_CUBE_CONTAINER = 4;

    public const CONTAINER_SPECIFICATION = [
        self::TWENTY_FEET_DRY_CONTAINER => [
            'name' => '20\' Dry Container',
            'internal_dimensions' => [
                'length' => 589.6,
                'width' => 235,
                'height' => 238.5
            ],
            'door_opening' => [
                'width' => 234.0,
                'height' => 227.4
            ],
            'tare_weight' => 2200,
            'payload' => 24850
        ],
        self::FORTY_FEET_DRY_CONTAINER => [
            'name' => '40\' Dry Container',
            'internal_dimensions' => [
                'length' => 1203.5,
                'width' => 234.7,
                'height' => 234.9
            ],
            'door_opening' => [
                'width' => 234.3,
                'height' => 227.8
            ],
            'tare_weight' => 3700,
            'payload' => 29710
        ],
        self::FORTY_FEET_HIGH_CUBE_CONTAINER => [
            'name' => '40\' High Cube Container',
            'internal_dimensions' => [
                'length' => 1205.6,
                'width' => 234.7,
                'height' => 268.4
            ],
            'door_opening' => [
                'width' => 234.3,
                'height' => 258.4
            ],
            'tare_weight' => 3000,
            'payload' => 29600
        ],
        self::FORTY_FIVE_FEET_HIGH_CUBE_CONTAINER => [
            'name' => '45\' High Cube Container',
            'internal_dimensions' => [
                'length' => 1358.2,
                'width' => 234.7,
                'height' => 269.6
            ],
            'door_opening' => [
                'width' => 234,
                'height' => 258.4
            ],
            'tare_weight' => 2900,
            'payload' => 24250
        ]
    ];

}