Issues (459)

src/graph/RectPatternDiagCross.php (2 issues)

Labels
Severity
1
<?php
2
3
/**
4
 * JPGraph v4.0.3
5
 */
6
7
namespace Amenadiel\JpGraph\Graph;
8
9
/**
10
 * @class RectPatternDiagCross
11
 * // Vert/Hor crosses
12
 */
13
class RectPatternDiagCross extends RectPattern
14
{
15
    private $left;
16
    private $right;
17
18
    public function __construct($aColor = 'black', $aWeight = 1)
19
    {
20
        parent::__construct($aColor, $aWeight);
21
        $this->right = new RectPatternRDiag($aColor, $aWeight);
22
        $this->left  = new RectPatternLDiag($aColor, $aWeight);
23
    }
24
25
    public function SetOrder($aDepth)
26
    {
27
        $this->left->SetOrder($aDepth);
0 ignored issues
show
The method SetOrder() does not exist on Amenadiel\JpGraph\Graph\RectPatternLDiag. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

27
        $this->left->/** @scrutinizer ignore-call */ 
28
                     SetOrder($aDepth);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
28
        $this->right->SetOrder($aDepth);
0 ignored issues
show
The method SetOrder() does not exist on Amenadiel\JpGraph\Graph\RectPatternRDiag. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

28
        $this->right->/** @scrutinizer ignore-call */ 
29
                      SetOrder($aDepth);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
29
    }
30
31
    public function SetPos($aRect)
32
    {
33
        parent::SetPos($aRect);
34
        $this->left->SetPos($aRect);
35
        $this->right->SetPos($aRect);
36
    }
37
38
    public function SetDensity($aDens)
39
    {
40
        $this->left->SetDensity($aDens);
41
        $this->right->SetDensity($aDens);
42
    }
43
44
    public function DoPattern($aImg)
45
    {
46
        $this->left->DoPattern($aImg);
47
        $this->right->DoPattern($aImg);
48
    }
49
}
50