| @@ 467-485 (lines=19) @@ | ||
| 464 | * @param TypeCode $typeCode type of the key property |
|
| 465 | * @param bool $isBag property is bag or not |
|
| 466 | */ |
|
| 467 | public function addPrimitiveProperty( |
|
| 468 | $resourceType, |
|
| 469 | $name, |
|
| 470 | $typeCode, |
|
| 471 | $isBag = false, |
|
| 472 | $defaultValue = null, |
|
| 473 | $nullable = false |
|
| 474 | ) { |
|
| 475 | $this->_addPrimitivePropertyInternal( |
|
| 476 | $resourceType, |
|
| 477 | $name, |
|
| 478 | $typeCode, |
|
| 479 | false, |
|
| 480 | $isBag, |
|
| 481 | false, |
|
| 482 | $defaultValue, |
|
| 483 | $nullable |
|
| 484 | ); |
|
| 485 | } |
|
| 486 | ||
| 487 | /** |
|
| 488 | * To add a non-key etag property. |
|
| @@ 495-507 (lines=13) @@ | ||
| 492 | * @param string $name name of the property |
|
| 493 | * @param TypeCode $typeCode type of the etag property |
|
| 494 | */ |
|
| 495 | public function addETagProperty($resourceType, $name, $typeCode, $defaultValue = null, $nullable = false) |
|
| 496 | { |
|
| 497 | $this->_addPrimitivePropertyInternal( |
|
| 498 | $resourceType, |
|
| 499 | $name, |
|
| 500 | $typeCode, |
|
| 501 | false, |
|
| 502 | false, |
|
| 503 | true, |
|
| 504 | $defaultValue, |
|
| 505 | $nullable |
|
| 506 | ); |
|
| 507 | } |
|
| 508 | ||
| 509 | /** |
|
| 510 | * To add a resource reference property. |
|