1: <?php
2:
3: namespace ShippoClient\Http\Request;
4:
5: use TurmericSpice\ReadWriteAttributes;
6:
7: class CommonParameter
8: {
9: use ReadWriteAttributes;
10:
11: /**
12: * A string of up to 100 characters
13: * that can be filled with any additional information you want to attach to the object.
14: *
15: * @return string
16: */
17: public function getMetadata()
18: {
19: return $this->attributes->mayHave('metadata')->asString(function ($metadata) {
20: return mb_strlen($metadata) <= 100;
21: });
22: }
23: }
24: