1: <?php
2: namespace Worldline\Acquiring\Sdk\Communication;
3:
4: use Exception;
5:
6: /**
7: * Class MultipartDataObject
8: *
9: * @package Worldline\Acquiring\Sdk\Communication
10: */
11: abstract class MultipartDataObject
12: {
13: /**
14: * @return MultipartFormDataObject
15: */
16: public abstract function toMultipartFormDataObject();
17:
18: public function __set($name, $value)
19: {
20: throw new Exception('Cannot add new property ' . $name . ' to instances of class ' . get_class($this));
21: }
22: }
23: