Issues (283)

src/Serialiser/Serialiser/SerialiserVarSeq.php (14 issues)

Labels
Severity
1
<?php
2
/**
3
 * This file is part of graze/unicontroller-client.
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/unicontroller-client/blob/master/LICENSE.md
11
 * @link https://github.com/graze/unicontroller-client
12
 */
13
namespace Graze\UnicontrollerClient\Serialiser\Serialiser;
14
15
use Graze\UnicontrollerClient\Serialiser\Serialiser\AbstractSerialiser;
16
use Graze\UnicontrollerClient\Serialiser\Serialiser\SerialiserInterface;
17
use Graze\UnicontrollerClient\Entity\Entity\EntityInterface;
18
19
class SerialiserVarSeq extends AbstractSerialiser implements SerialiserInterface
20
{
21
    /**
22
     * @param EntityInterface $entity
23
     * @return string
24
     */
25 2
    public function serialise(EntityInterface $entity)
26
    {
27 2
        $properties = [];
28 2
        $properties[] = $this->stringEscaper->escape($entity->getName());
0 ignored issues
show
The method getName() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of said class. However, the method does not exist in Graze\UnicontrollerClien...ty\Entity\EntityTtfItem or Graze\UnicontrollerClien...tity\EntitySettingsById or Graze\UnicontrollerClien...ntity\EntityBarcodeItem or Graze\UnicontrollerClien...ty\Entity\EntityBoxItem or Graze\UnicontrollerClien...ntity\EntityPictureItem or Graze\UnicontrollerClien...y\Entity\EntityLineItem or Graze\UnicontrollerClien...y\EntityShiftDefinition or Graze\UnicontrollerClien...ty\Entity\EntityGeneric. Are you sure you never get one of those? ( Ignorable by Annotation )

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

28
        $properties[] = $this->stringEscaper->escape($entity->/** @scrutinizer ignore-call */ getName());
Loading history...
29 2
        $properties[] = $this->stringEscaper->escape($entity->getPrompt());
0 ignored issues
show
The method getPrompt() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...\Entity\EntityVarPrompt or Graze\UnicontrollerClien...ity\Entity\EntityVarSeq or Graze\UnicontrollerClien...ntity\EntityVarDatabase. ( Ignorable by Annotation )

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

29
        $properties[] = $this->stringEscaper->escape($entity->/** @scrutinizer ignore-call */ getPrompt());
Loading history...
30 2
        $properties[] = $entity->getLength();
0 ignored issues
show
The method getLength() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...tity\EntityVarShiftCode or Graze\UnicontrollerClien...ty\EntityVarMacroOutput or Graze\UnicontrollerClien...\Entity\EntityVarPrompt or Graze\UnicontrollerClien...ity\Entity\EntityVarSeq or Graze\UnicontrollerClien...\Entity\EntityVarSerial or Graze\UnicontrollerClien...\EntityVarDatabaseField or Graze\UnicontrollerClien...ity\Entity\EntityVarRtc or Graze\UnicontrollerClien...y\Entity\EntityVarMacro. ( Ignorable by Annotation )

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

30
        /** @scrutinizer ignore-call */ 
31
        $properties[] = $entity->getLength();
Loading history...
31 2
        $properties[] = $entity->getInterval();
0 ignored issues
show
The method getInterval() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

31
        /** @scrutinizer ignore-call */ 
32
        $properties[] = $entity->getInterval();
Loading history...
32 2
        $properties[] = $entity->getInputType();
0 ignored issues
show
The method getInputType() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...\Entity\EntityVarPrompt or Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

32
        /** @scrutinizer ignore-call */ 
33
        $properties[] = $entity->getInputType();
Loading history...
33 2
        $properties[] = $entity->getOutputType();
0 ignored issues
show
The method getOutputType() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

33
        /** @scrutinizer ignore-call */ 
34
        $properties[] = $entity->getOutputType();
Loading history...
34 2
        $properties[] = $entity->getMinValue();
0 ignored issues
show
The method getMinValue() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

34
        /** @scrutinizer ignore-call */ 
35
        $properties[] = $entity->getMinValue();
Loading history...
35 2
        $properties[] = $entity->getMaxValue();
0 ignored issues
show
The method getMaxValue() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

35
        /** @scrutinizer ignore-call */ 
36
        $properties[] = $entity->getMaxValue();
Loading history...
36 2
        $properties[] = $entity->getRollOver();
0 ignored issues
show
The method getRollOver() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

36
        /** @scrutinizer ignore-call */ 
37
        $properties[] = $entity->getRollOver();
Loading history...
37 2
        $properties[] = $entity->getFixedStart();
0 ignored issues
show
The method getFixedStart() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

37
        /** @scrutinizer ignore-call */ 
38
        $properties[] = $entity->getFixedStart();
Loading history...
38 2
        $properties[] = $entity->getStartValue();
0 ignored issues
show
The method getStartValue() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

38
        /** @scrutinizer ignore-call */ 
39
        $properties[] = $entity->getStartValue();
Loading history...
39 2
        $properties[] = $entity->getPaddingType();
0 ignored issues
show
The method getPaddingType() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

39
        /** @scrutinizer ignore-call */ 
40
        $properties[] = $entity->getPaddingType();
Loading history...
40 2
        $properties[] = $entity->getRepeatCount();
0 ignored issues
show
The method getRepeatCount() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

40
        /** @scrutinizer ignore-call */ 
41
        $properties[] = $entity->getRepeatCount();
Loading history...
41 2
        $properties[] = $entity->getResumeCount();
0 ignored issues
show
The method getResumeCount() does not exist on Graze\UnicontrollerClien...\Entity\EntityInterface. It seems like you code against a sub-type of Graze\UnicontrollerClien...\Entity\EntityInterface such as Graze\UnicontrollerClien...ity\Entity\EntityVarSeq. ( Ignorable by Annotation )

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

41
        /** @scrutinizer ignore-call */ 
42
        $properties[] = $entity->getResumeCount();
Loading history...
42
43 2
        return implode(',', $properties);
44
    }
45
}
46