azure-storage-table\src\Table\Models\Entity.php
You may obtain a copy of the License at https://github.com/azure/azure-storage-php/LICENSE
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
PHP version 5
- Author
- Azure Storage PHP SDK
- Category
- Microsoft
- Copyright
- 2016 Microsoft Corporation
- License
- https://github.com/azure/azure-storage-php/LICENSE
- Link
- https://github.com/azure/azure-storage-php
- Package
- MicrosoftAzure\Storage\Table\Models
\MicrosoftAzure\Storage\Table\Models\Entity
- Author
- Azure Storage PHP SDK
- Category
- Microsoft
- Copyright
- 2016 Microsoft Corporation
- License
- https://github.com/azure/azure-storage-php/LICENSE
- Link
- https://github.com/azure/azure-storage-php
Methods
addProperty(string $name, string $edmType, mixed $value, string $rawValue = '') : void
Creates new entity property.
Name | Type | Description |
---|---|---|
$name | string | The property name. |
$edmType | string | The property edm type. |
$value | mixed | The property value. |
$rawValue | string | The raw value of the property. |
getProperty(string $name) : \MicrosoftAzure\Storage\Table\Models\Property | null
Gets property object from the entity properties.
Name | Type | Description |
---|---|---|
$name | string | The property name. |
Type | Description |
---|---|
\MicrosoftAzure\Storage\Table\Models\Property | null |
getPropertyValue(string $name) : mixed
Gets property value and if the property name is not found return null.
Name | Type | Description |
---|---|---|
$name | string | The property name. |
Type | Description |
---|---|
mixed |
setETag(string $etag) : void
Sets entity etag.
Name | Type | Description |
---|---|---|
$etag | string | The entity ETag value. |
setPartitionKey(string $partitionKey) : void
Sets entity PartitionKey.
Name | Type | Description |
---|---|---|
$partitionKey | string | The entity PartitionKey value. |
setProperties(array $properties) : void
Sets the entity properties array.
Name | Type | Description |
---|---|---|
$properties | array | The entity properties. |
setProperty(string $name, \MicrosoftAzure\Storage\Table\Models\Property $property) : void
Sets entity property.
Name | Type | Description |
---|---|---|
$name | string | The property name. |
$property | \MicrosoftAzure\Storage\Table\Models\Property | The property object. |
setPropertyValue(string $name, mixed $value) : mixed
Sets property value.
Note that if the property doesn't exist, it doesn't add it. Use addProperty to add new properties.
Name | Type | Description |
---|---|---|
$name | string | The property name. |
$value | mixed | The property value. |
Type | Description |
---|---|
mixed |
setRowKey(string $rowKey) : void
Sets entity RowKey.
Name | Type | Description |
---|---|---|
$rowKey | string | The entity RowKey value. |