ISerializable::ns_serialize()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
    namespace NokitaKaze\Serializer;
4
5
    interface ISerializable {
6
        const TYPE = 6;
7
8
        /**
9
         * @return Variant
10
         */
11
        public function ns_serialize();
12
13
        /**
14
         * @param Variant $variant
15
         *
16
         * @return object
17
         * @throws UnserializeException
18
         */
19
        public static function ns_unserialize($variant);
20
    }
21
22
?>
0 ignored issues
show
Best Practice introduced by
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...