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 SerialiserVarMacro extends AbstractSerialiser implements SerialiserInterface |
||||||
20 | { |
||||||
21 | /** |
||||||
22 | * @param EntityInterface $entity |
||||||
23 | * @return string |
||||||
24 | */ |
||||||
25 | 1 | public function serialise(EntityInterface $entity) |
|||||
26 | { |
||||||
27 | 1 | $properties = []; |
|||||
28 | 1 | $properties[] = $this->stringEscaper->escape($entity->getName()); |
|||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||||
29 | 1 | $properties[] = $this->stringEscaper->escape($entity->getMacroDefinition()); |
|||||
0 ignored issues
–
show
The method
getMacroDefinition() 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...y\Entity\EntityVarMacro .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
30 | 1 | $properties[] = $entity->getIsSeq(); |
|||||
0 ignored issues
–
show
The method
getIsSeq() 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...y\Entity\EntityVarMacro .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
31 | 1 | $properties[] = $entity->getIsRtc(); |
|||||
0 ignored issues
–
show
The method
getIsRtc() 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...y\Entity\EntityVarMacro .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
32 | 1 | $properties[] = $entity->getcPadding(); |
|||||
0 ignored issues
–
show
The method
getcPadding() 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...ntity\EntityVarDatabase 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
![]() |
|||||||
33 | 1 | $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
![]() |
|||||||
34 | |||||||
35 | 1 | return implode(',', $properties); |
|||||
36 | } |
||||||
37 | } |
||||||
38 |