commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Public Member Functions | Static Public Member Functions | List of all members
Commercetools\Base\CMap Interface Reference
Inheritance diagram for Commercetools\Base\CMap:
Commercetools\Base\Collection Commercetools\Api\Models\Common\LocalizedString Commercetools\Api\Models\Product\CategoryOrderHints Commercetools\Api\Models\Product\ProductVariantChannelAvailabilityMap Commercetools\Api\Models\Product\SearchKeywords Commercetools\Api\Models\Type\FieldContainer Commercetools\Base\MapperMap Commercetools\Base\MapperMap Commercetools\History\Models\Common\LocalizedString Commercetools\Import\Models\Common\LocalizedString Commercetools\Import\Models\Customfields\FieldContainer

Public Member Functions

 toArray ()
 
 jsonSerialize ()
 
 put (string $key, $value)
 
 at (string $key)
 
 with (string $key, callable $callable=null)
 
 getIterator ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Static Public Member Functions

static of ($data=null)
 
static fromStdClass (stdClass $data=null)
 
static fromArray (array $data)
 

Detailed Description

@template TObject

Definition at line 17 of file CMap.php.

Member Function Documentation

◆ at()

Commercetools\Base\CMap::at ( string  $key)

@psalm-return ?TObject

Implemented in Commercetools\Base\MapperMap.

◆ current()

Commercetools\Base\CMap::current ( )
Returns
?TObject

Implemented in Commercetools\Base\MapperMap.

◆ fromArray()

static Commercetools\Base\CMap::fromArray ( array  $data)
static

@template T @psalm-param array<string, T|stdClass> $data

Returns
static

Implemented in Commercetools\Base\MapperMap.

◆ fromStdClass()

static Commercetools\Base\CMap::fromStdClass ( stdClass  $data = null)
static

@psalm-param ?stdClass $data @psalm-return static

Implemented in Commercetools\Base\MapperMap.

◆ getIterator()

Commercetools\Base\CMap::getIterator ( )

◆ jsonSerialize()

Commercetools\Base\CMap::jsonSerialize ( )

@psalm-return array<string, stdClass|mixed>

Implemented in Commercetools\Base\MapperMap.

◆ key()

Commercetools\Base\CMap::key ( )
Returns
string

Implemented in Commercetools\Base\MapperMap.

◆ next()

Commercetools\Base\CMap::next ( )
Returns
void

Implemented in Commercetools\Base\MapperMap.

◆ of()

static Commercetools\Base\CMap::of (   $data = null)
static

@template T @psalm-param ?stdClass|array<string, T|stdClass> $data

Returns
static

Implemented in Commercetools\Base\MapperMap.

◆ offsetExists()

Commercetools\Base\CMap::offsetExists (   $offset)
Parameters
string$offset
Returns
bool

Implemented in Commercetools\Base\MapperMap.

◆ offsetGet()

Commercetools\Base\CMap::offsetGet (   $offset)
Parameters
string$offset
Returns
?TObject

Implemented in Commercetools\Base\MapperMap.

◆ offsetSet()

Commercetools\Base\CMap::offsetSet (   $offset,
  $value 
)
Parameters
string$offset@psalm-param TObject|stdClass $value
mixed$value
Returns
void

Implemented in Commercetools\Base\MapperMap.

◆ offsetUnset()

Commercetools\Base\CMap::offsetUnset (   $offset)
Parameters
string$offset
Returns
void

Implemented in Commercetools\Base\MapperMap.

◆ put()

Commercetools\Base\CMap::put ( string  $key,
  $value 
)

@psalm-param TObject|stdClass $value

Parameters
$value
Returns
$this

Implemented in Commercetools\Base\MapperMap.

◆ rewind()

Commercetools\Base\CMap::rewind ( )
Returns
void

Implemented in Commercetools\Base\MapperMap.

◆ toArray()

Commercetools\Base\CMap::toArray ( )

@psalm-return array<string, stdClass|mixed>

Implemented in Commercetools\Base\MapperMap.

◆ valid()

Commercetools\Base\CMap::valid ( )
Returns
bool

Implemented in Commercetools\Base\MapperMap.

◆ with()

Commercetools\Base\CMap::with ( string  $key,
callable  $callable = null 
)
Returns
static|mixed

Implemented in Commercetools\Base\MapperMap.


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