![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/jms/serializer/src/Visitor/ |
<?php declare(strict_types=1); namespace JMS\Serializer\Visitor; use JMS\Serializer\Metadata\ClassMetadata; use JMS\Serializer\Metadata\PropertyMetadata; use JMS\Serializer\VisitorInterface; /** * Interface for visitors. * * This contains the minimal set of values that must be supported for any * output format. * * @author Johannes M. Schmitt <[email protected]> * @author Asmir Mustafic <[email protected]> */ interface SerializationVisitorInterface extends VisitorInterface { /** * @param mixed $data * * @return mixed */ public function visitNull($data, array $type); /** * @return mixed */ public function visitString(string $data, array $type); /** * @return mixed */ public function visitBoolean(bool $data, array $type); /** * @return mixed */ public function visitDouble(float $data, array $type); /** * @return mixed */ public function visitInteger(int $data, array $type); /** * @return array|\ArrayObject|void */ public function visitArray(array $data, array $type); /** * Called before the properties of the object are being visited. */ public function startVisitingObject(ClassMetadata $metadata, object $data, array $type): void; /** * @param mixed $data */ public function visitProperty(PropertyMetadata $metadata, $data): void; /** * Called after all properties of the object have been visited. * * @return array|\ArrayObject|void */ public function endVisitingObject(ClassMetadata $metadata, object $data, array $type); }