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