blob: 698f82b63c31f5e36da52f80ca7596d43676dc0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
/**
* PHP version 7.1.1
* @author Hannes Kindströmmer <hannes@kindstrommer.se>
* @copyright 2017 iP.1 Networks AB
* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
* @version 0.1.0-beta
* @since File available since Release 0.1.0-beta
* @link http://api.ip1sms.com/Help
* @link https://github.com/iP1SMS/ip1-php-sdk
*/
namespace IP1\RESTClient\Core;
/**
* If an entity can be changed by the user or the API after it has been added to the API
* that class implements this interface.
* @package \IP1\RESTClient\Core
*/
interface UpdatableComponentInterface extends ProcessedComponentInterface
{
/**
* Returns when the component was updated last.
* @param \DateTimeZone $timezone The timezone that the user wants to get the DateTime in. Default is UTC.
* @return \DateTime When the contact was updated/modified last.
*/
public function getUpdated(\DateTimeZone $timezone = null): ?\DateTime;
/**
* Returns whether the object is read only or not.
* @return boolean Whether the object is read only or not.
*/
public function isReadOnly(): bool;
}
|