commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Commercetools\Api\Models\Product\NestedAttribute Class Reference

Inherits Commercetools\Base\MapperSequence, and Commercetools\Base\MapperSequence.

Public Member Functions

 add ($value)
 
- Public Member Functions inherited from Commercetools\Base\MapperSequence
 __construct (?array $data=null)
 
 toArray ()
 
 jsonSerialize ()
 
 at (int $index)
 
 getIterator ()
 
 current ()
 
 end ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Protected Member Functions

 mapper ()
 
- Protected Member Functions inherited from Commercetools\Base\MapperSequence
 index ($data)
 
 get (?int $index)
 
 set ($data, ?int $index)
 
 store ($value)
 
 addToIndex (string $field, string $key, int $index)
 
 valueByKey (string $field, string $key)
 

Additional Inherited Members

- Static Public Member Functions inherited from Commercetools\Base\MapperSequence
static fromArray (array $data)
 
static of ()
 

Detailed Description

<Attribute> @method Attribute current() @method Attribute at($offset)

Definition at line 16 of file NestedAttribute.php.

Member Function Documentation

◆ add()

Commercetools\Api\Models\Product\NestedAttribute::add (   $value)

@psalm-assert Attribute $value @psalm-param Attribute|stdClass $value

Exceptions
InvalidArgumentException
Returns
NestedAttribute

Reimplemented from Commercetools\Base\MapperSequence.

Definition at line 25 of file NestedAttribute.php.

◆ mapper()

Commercetools\Api\Models\Product\NestedAttribute::mapper ( )
protected

@psalm-return callable(int):?Attribute

Reimplemented from Commercetools\Base\MapperSequence.

Definition at line 38 of file NestedAttribute.php.


The documentation for this class was generated from the following file: