1 | <?php |
||
26 | class DataTablesEntityHelper { |
||
27 | |||
28 | /** |
||
29 | * Determines if an entity is compatible. |
||
30 | * |
||
31 | * @param DataTablesEntityInterface|object $entity The entity. |
||
32 | * @return bool Returns true in case of success, false otherwise. |
||
33 | */ |
||
34 | public static function isCompatible($entity) { |
||
46 | |||
47 | /** |
||
48 | * Creates a serializer. |
||
49 | * |
||
50 | * @return Serializer Returns the serializer. |
||
51 | */ |
||
52 | public static function newSerializer() { |
||
55 | |||
56 | /** |
||
57 | * Serialize an entity. |
||
58 | * |
||
59 | * @param object $entity The entity. |
||
60 | * @return string Returns the serialized entity. |
||
61 | */ |
||
62 | public static function jsonSerialize($entity) { |
||
68 | } |
||
69 |