1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace RocketTheme\Toolbox\ArrayTraits;
- /**
- * Defines Export interface.
- *
- * @package RocketTheme\Toolbox\ArrayTraits
- * @author RocketTheme
- * @license MIT
- */
- interface ExportInterface
- {
- /**
- * Convert object into an array.
- *
- * @return array
- */
- public function toArray();
- /**
- * Convert object into YAML string.
- *
- * @param int $inline
- * @param int $indent
- * @return string
- */
- public function toYaml($inline = 3, $indent = 2);
- /**
- * Convert object into JSON string.
- *
- * @return string
- */
- public function toJson();
- }
|