D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
vendor
/
jms
/
serializer
/
src
/
Annotation
/
Filename :
PreSerialize.php
back
Copy
<?php declare(strict_types=1); namespace JMS\Serializer\Annotation; /** * This annotation can be declared on methods which should be called * before the Serialization process. * * These methods do not need to be public, and should do any clean-up, or * preparation of the object that is necessary. * * @Annotation * @Target("METHOD") * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ #[\Attribute(\Attribute::TARGET_METHOD)] final class PreSerialize implements SerializerAttribute { }