1: <?php
 2: 
 3: /**
 4:  * Entities that are built based on an API call response must implement this
 5:  */
 6: interface Syspay_Merchant_Entity_ReturnedEntityInterface
 7: {
 8:     /**
 9:      * Creates an entity using the data provided by the API
10:      * (turned into an stdCalass)
11:      *
12:      * @param  stdClass $response The raw response data
13:      *
14:      * @return self
15:      */
16:     public static function buildFromResponse(stdClass $response);
17: }
18: