| @@ 450-468 (lines=19) @@ | ||
| 447 | * @param TypeCode $typeCode type of the key property |
|
| 448 | * @param bool $isBag property is bag or not |
|
| 449 | */ |
|
| 450 | public function addPrimitiveProperty( |
|
| 451 | $resourceType, |
|
| 452 | $name, |
|
| 453 | $typeCode, |
|
| 454 | $isBag = false, |
|
| 455 | $defaultValue = null, |
|
| 456 | $nullable = false |
|
| 457 | ) { |
|
| 458 | $this->_addPrimitivePropertyInternal( |
|
| 459 | $resourceType, |
|
| 460 | $name, |
|
| 461 | $typeCode, |
|
| 462 | false, |
|
| 463 | $isBag, |
|
| 464 | false, |
|
| 465 | $defaultValue, |
|
| 466 | $nullable |
|
| 467 | ); |
|
| 468 | } |
|
| 469 | ||
| 470 | /** |
|
| 471 | * To add a non-key etag property. |
|
| @@ 478-490 (lines=13) @@ | ||
| 475 | * @param string $name name of the property |
|
| 476 | * @param TypeCode $typeCode type of the etag property |
|
| 477 | */ |
|
| 478 | public function addETagProperty($resourceType, $name, $typeCode, $defaultValue = null, $nullable = false) |
|
| 479 | { |
|
| 480 | $this->_addPrimitivePropertyInternal( |
|
| 481 | $resourceType, |
|
| 482 | $name, |
|
| 483 | $typeCode, |
|
| 484 | false, |
|
| 485 | false, |
|
| 486 | true, |
|
| 487 | $defaultValue, |
|
| 488 | $nullable |
|
| 489 | ); |
|
| 490 | } |
|
| 491 | ||
| 492 | /** |
|
| 493 | * To add a resource reference property. |
|