mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
40 lines
951 B
PHP
40 lines
951 B
PHP
|
<?php
|
||
|
namespace Luracast\Restler\Data;
|
||
|
|
||
|
/**
|
||
|
* Restler is using many ValueObjects across to make it easy for the developers
|
||
|
* to use them with the help of code hinting etc.,
|
||
|
*
|
||
|
* @category Framework
|
||
|
* @package Restler
|
||
|
* @author R.Arul Kumaran <arul@luracast.com>
|
||
|
* @copyright 2010 Luracast
|
||
|
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||
|
* @link http://luracast.com/products/restler/
|
||
|
* @version 3.0.0rc5
|
||
|
*/
|
||
|
interface iValueObject
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* This static method is called for creating an instance of the class by
|
||
|
* passing the initiation values as an array.
|
||
|
*
|
||
|
* @static
|
||
|
* @abstract
|
||
|
*
|
||
|
* @param array $properties
|
||
|
*
|
||
|
* @return iValueObject
|
||
|
*/
|
||
|
public static function __set_state(array $properties);
|
||
|
|
||
|
/**
|
||
|
* This method provides a string representation for the instance
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function __toString();
|
||
|
}
|
||
|
|