Passed
Push — master ( 4dd324...c74dc6 )
by Leandro
09:57
created

LuxuryBag::wearBag()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace ItsMeLePassos\HandBag\Bags;
4
5
use ItsMeLePassos\HandBag\Bag;
6
use Override;
0 ignored issues
show
Bug introduced by
The type Override was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
class LuxuryBag extends Bag
9
{
10
    private string $particularities;
11
12
    public function setParticularities(string $particularities): void
13
    {
14
        $this->particularities = $particularities;
15
    }
16
17
    public function getParticularities(): string
18
    {
19
        $part = "<h2>Particularidades</h2>";
20
        $part .= "<p>{$this->particularities}</p>";
21
22
        return $part;
23
    }
24
25
    /**
26
     * This function overrides the parent class function
27
     *
28
     * @return string
29
     */
30
    #[Override]
31
    public function wearBag(): string
32
    {
33
        return "É um luuuuuuuxo!";
34
    }
35
}
36