mirror of
https://github.com/pierre42100/comunic
synced 2025-06-21 17:45:18 +00:00
First commit
This commit is contained in:
35
developer/vendor/rockettheme/toolbox/ArrayTraits/src/ExportInterface.php
vendored
Normal file
35
developer/vendor/rockettheme/toolbox/ArrayTraits/src/ExportInterface.php
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
<?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();
|
||||
}
|
Reference in New Issue
Block a user