| @@ 510-528 (lines=19) @@ | ||
| 507 | * @param null|mixed $defaultValue |
|
| 508 | * @param mixed $nullable |
|
| 509 | */ |
|
| 510 | public function addPrimitiveProperty( |
|
| 511 | $resourceType, |
|
| 512 | $name, |
|
| 513 | $typeCode, |
|
| 514 | $isBag = false, |
|
| 515 | $defaultValue = null, |
|
| 516 | $nullable = false |
|
| 517 | ) { |
|
| 518 | $this->addPrimitivePropertyInternal( |
|
| 519 | $resourceType, |
|
| 520 | $name, |
|
| 521 | $typeCode, |
|
| 522 | false, |
|
| 523 | $isBag, |
|
| 524 | false, |
|
| 525 | $defaultValue, |
|
| 526 | $nullable |
|
| 527 | ); |
|
| 528 | } |
|
| 529 | ||
| 530 | /** |
|
| 531 | * To add a non-key etag property. |
|
| @@ 540-552 (lines=13) @@ | ||
| 537 | * @param null|mixed $defaultValue |
|
| 538 | * @param mixed $nullable |
|
| 539 | */ |
|
| 540 | public function addETagProperty($resourceType, $name, $typeCode, $defaultValue = null, $nullable = false) |
|
| 541 | { |
|
| 542 | $this->addPrimitivePropertyInternal( |
|
| 543 | $resourceType, |
|
| 544 | $name, |
|
| 545 | $typeCode, |
|
| 546 | false, |
|
| 547 | false, |
|
| 548 | true, |
|
| 549 | $defaultValue, |
|
| 550 | $nullable |
|
| 551 | ); |
|
| 552 | } |
|
| 553 | ||
| 554 | /** |
|
| 555 | * To add a resource reference property. |
|