Bukashk0zzz / YmlGenerator

@@ -128,6 +128,11 @@
Loading
128 128
     */
129 129
    private $weight;
130 130
131 +
    /**
132 +
     * @var string
133 +
     */
134 +
    private $dimensions;
135 +
131 136
    /**
132 137
     * @var int
133 138
     */
@@ -639,6 +644,34 @@
Loading
639 644
        return $this;
640 645
    }
641 646
647 +
    /**
648 +
     * @return string
649 +
     */
650 +
    public function getDimensions()
651 +
    {
652 +
        return $this->dimensions;
653 +
    }
654 +
655 +
    /**
656 +
     * @param float $length
657 +
     * @param float $width
658 +
     * @param float $height
659 +
     *
660 +
     * @return $this
661 +
     */
662 +
    public function setDimensions($length, $width, $height)
663 +
    {
664 +
        $dimensions = [
665 +
            \round((float) $length, 3),
666 +
            \round((float) $width, 3),
667 +
            \round((float) $height, 3),
668 +
        ];
669 +
670 +
        $this->dimensions = \implode('/', $dimensions);
671 +
672 +
        return $this;
673 +
    }
674 +
642 675
    /**
643 676
     * @return int
644 677
     */
@@ -886,6 +919,7 @@
Loading
886 919
                'delivery' => $this->isDelivery(),
887 920
                'local_delivery_cost' => $this->getLocalDeliveryCost(),
888 921
                'weight' => $this->getWeight(),
922 +
                'dimensions' => $this->getDimensions(),
889 923
                'name' => $this->getName(),
890 924
                'enable_auto_discounts' => $this->getAutoDiscount(),
891 925
            ] + $this->getCustomElements();
Files Complexity Coverage
src 290 98.63%
Project Totals (19 files) 290 98.63%
117.2
7.0=.0
TRAVIS_OS_NAME=linux
117.1
TRAVIS_OS_NAME=linux
5.6=.6
118.2
7.0=.0
TRAVIS_OS_NAME=linux
118.1
TRAVIS_OS_NAME=linux
5.6=.6

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading