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 SerialiserPictureItem 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[] = $entity->getAnchorPoint(); |
|||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||||
29 | 2 | $properties[] = $entity->getXPos(); |
|||||
0 ignored issues
–
show
The method
getXPos() 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...ty\Entity\EntityTtfItem or Graze\UnicontrollerClien...ntity\EntityBarcodeItem or Graze\UnicontrollerClien...ty\Entity\EntityBoxItem or Graze\UnicontrollerClien...ntity\EntityPictureItem or Graze\UnicontrollerClien...y\Entity\EntityLineItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
30 | 2 | $properties[] = $entity->getYPos(); |
|||||
0 ignored issues
–
show
The method
getYPos() 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...ty\Entity\EntityTtfItem or Graze\UnicontrollerClien...ntity\EntityBarcodeItem or Graze\UnicontrollerClien...ty\Entity\EntityBoxItem or Graze\UnicontrollerClien...ntity\EntityPictureItem or Graze\UnicontrollerClien...y\Entity\EntityLineItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
31 | 2 | $properties[] = $entity->getWidth(); |
|||||
0 ignored issues
–
show
The method
getWidth() 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...ty\Entity\EntityTtfItem or Graze\UnicontrollerClien...ty\Entity\EntityBoxItem or Graze\UnicontrollerClien...Entity\EntityReadDesign or Graze\UnicontrollerClien...ntity\EntityPictureItem or Graze\UnicontrollerClien...y\Entity\EntityLineItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
32 | 2 | $properties[] = $entity->getHeight(); |
|||||
0 ignored issues
–
show
The method
getHeight() 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...ty\Entity\EntityTtfItem or Graze\UnicontrollerClien...ntity\EntityBarcodeItem or Graze\UnicontrollerClien...ty\Entity\EntityBoxItem or Graze\UnicontrollerClien...Entity\EntityReadDesign or Graze\UnicontrollerClien...ntity\EntityPictureItem or Graze\UnicontrollerClien...y\Entity\EntityLineItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
33 | 2 | $properties[] = $entity->getOrion(); |
|||||
0 ignored issues
–
show
The method
getOrion() 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...ty\Entity\EntityTtfItem or Graze\UnicontrollerClien...ntity\EntityBarcodeItem or Graze\UnicontrollerClien...ty\Entity\EntityBoxItem or Graze\UnicontrollerClien...ntity\EntityPictureItem or Graze\UnicontrollerClien...y\Entity\EntityLineItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
34 | 2 | $properties[] = $this->stringEscaper->escape($entity->getDescription()); |
|||||
0 ignored issues
–
show
The method
getDescription() 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...ty\Entity\EntityTtfItem or Graze\UnicontrollerClien...ntity\EntityBarcodeItem or Graze\UnicontrollerClien...ty\Entity\EntityBoxItem or Graze\UnicontrollerClien...ntity\EntityPictureItem or Graze\UnicontrollerClien...y\Entity\EntityLineItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
35 | 2 | $properties[] = $entity->getMaintain(); |
|||||
0 ignored issues
–
show
The method
getMaintain() 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...ntity\EntityPictureItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
36 | 2 | $properties[] = $this->stringEscaper->escape($entity->getPictureName()); |
|||||
0 ignored issues
–
show
The method
getPictureName() 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...ntity\EntityPictureItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
37 | 2 | $properties[] = $this->stringEscaper->escape($entity->getPrinterReferenceName()); |
|||||
0 ignored issues
–
show
The method
getPrinterReferenceName() 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...ntity\EntityPictureItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
38 | 2 | $properties[] = $entity->getUsePixelSize(); |
|||||
0 ignored issues
–
show
The method
getUsePixelSize() 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...ntity\EntityPictureItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
39 | 2 | $properties[] = $this->binaryDataSerialiser->serialise($entity->getPictureData()); |
|||||
0 ignored issues
–
show
The method
getPictureData() 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...ntity\EntityPictureItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
40 | |||||||
41 | 2 | $properties[] = $entity->getStoreInternally(); |
|||||
0 ignored issues
–
show
The method
getStoreInternally() 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...ntity\EntityPictureItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
42 | 2 | $properties[] = $entity->getPhantomField(); |
|||||
0 ignored issues
–
show
The method
getPhantomField() 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...ty\Entity\EntityTtfItem or Graze\UnicontrollerClien...ntity\EntityBarcodeItem or Graze\UnicontrollerClien...ty\Entity\EntityBoxItem or Graze\UnicontrollerClien...ntity\EntityPictureItem or Graze\UnicontrollerClien...y\Entity\EntityLineItem .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
43 | 2 | return implode(',', $properties); |
|||||
44 | } |
||||||
45 | } |
||||||
46 |