| 1 | <?php  | 
            ||
| 8 | class EntityWrapper extends Wrapper  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * Method used by the mapper to set the object  | 
            ||
| 12 | * attribute raw values (hydration)  | 
            ||
| 13 | *  | 
            ||
| 14 | * @param array $attributes  | 
            ||
| 15 | *  | 
            ||
| 16 | * @return void  | 
            ||
| 17 | */  | 
            ||
| 18 | public function setEntityAttributes(array $attributes)  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * Method used by the mapper to get the  | 
            ||
| 25 | * raw object's values.  | 
            ||
| 26 | *  | 
            ||
| 27 | * @return array  | 
            ||
| 28 | */  | 
            ||
| 29 | public function getEntityAttributes()  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * Method used by the mapper to set raw  | 
            ||
| 36 | * key-value pair  | 
            ||
| 37 | *  | 
            ||
| 38 | * @param string $key  | 
            ||
| 39 | * @param string $value  | 
            ||
| 40 | *  | 
            ||
| 41 | * @return void  | 
            ||
| 42 | */  | 
            ||
| 43 | public function setEntityAttribute($key, $value)  | 
            ||
| 51 | |||
| 52 | /**  | 
            ||
| 53 | * Method used by the mapper to get single  | 
            ||
| 54 | * key-value pair  | 
            ||
| 55 | *  | 
            ||
| 56 | * @param string $key  | 
            ||
| 57 | * @return mixed|null  | 
            ||
| 58 | */  | 
            ||
| 59 | public function getEntityAttribute($key)  | 
            ||
| 68 | |||
| 69 | /**  | 
            ||
| 70 | * Test if a given attribute exists  | 
            ||
| 71 | *  | 
            ||
| 72 | * @param string $key  | 
            ||
| 73 | * @return boolean  | 
            ||
| 74 | */  | 
            ||
| 75 | public function hasAttribute($key)  | 
            ||
| 85 | }  | 
            ||
| 86 |