# ClassMapInterface

Chevere\Interfaces\ClassMap\ClassMapInterface

view source (opens new window)

# Extends

# Description

Describes the component in charge of mapping classes to keys.

# Methods

# withPut

Return an instance with the specified className mapping.

Parameters

  • className: string
  • key: string

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified className mapping.


# has

Indicates whether the instance is mapping the given class name.

Parameters

  • className: string

Return

bool


# hasKey

Indicates whether the instance maps the given key.

Parameters

  • key: string

Return

bool


# key

Provides access to the class name mapping.

Parameters

  • className: string

Return

string


# className

Provides access to the class name mapped by key.

Parameters

  • key: string

Return

string


# getGenerator

Provides a generator with className => key


# toArray

Provides access to the class map className => key

Return

array


# keys

Provides access to the object keys.

Return

array


Last Updated: 5/1/2021, 2:31:10 PM