| @@ 539-557 (lines=19) @@ | ||
| 536 | * @param null|mixed $defaultValue |
|
| 537 | * @param mixed $nullable |
|
| 538 | */ |
|
| 539 | public function addPrimitiveProperty( |
|
| 540 | $resourceType, |
|
| 541 | $name, |
|
| 542 | $typeCode, |
|
| 543 | $isBag = false, |
|
| 544 | $defaultValue = null, |
|
| 545 | $nullable = false |
|
| 546 | ) { |
|
| 547 | $this->addPrimitivePropertyInternal( |
|
| 548 | $resourceType, |
|
| 549 | $name, |
|
| 550 | $typeCode, |
|
| 551 | false, |
|
| 552 | $isBag, |
|
| 553 | false, |
|
| 554 | $defaultValue, |
|
| 555 | $nullable |
|
| 556 | ); |
|
| 557 | } |
|
| 558 | ||
| 559 | /** |
|
| 560 | * To add a non-key etag property. |
|
| @@ 569-581 (lines=13) @@ | ||
| 566 | * @param null|mixed $defaultValue |
|
| 567 | * @param mixed $nullable |
|
| 568 | */ |
|
| 569 | public function addETagProperty($resourceType, $name, $typeCode, $defaultValue = null, $nullable = false) |
|
| 570 | { |
|
| 571 | $this->addPrimitivePropertyInternal( |
|
| 572 | $resourceType, |
|
| 573 | $name, |
|
| 574 | $typeCode, |
|
| 575 | false, |
|
| 576 | false, |
|
| 577 | true, |
|
| 578 | $defaultValue, |
|
| 579 | $nullable |
|
| 580 | ); |
|
| 581 | } |
|
| 582 | ||
| 583 | /** |
|
| 584 | * To add a resource reference property. |
|