# ClassMapInterface

Chevere\Interfaces\ClassMap\ClassMapInterface

view source

# Extends

# Description

Describes the component in charge of mapping classes to keys.

# Methods

# withPut()

Return an instance with the specified className mapping.

# Parameters

  1. string $className
  2. string $key

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

  1. string $className

RETURN

bool


# hasKey()

Indicates whether the instance maps the given key.

# Parameters

  1. string $key

RETURN

bool


# key()

Provides access to the class name mapping.

# Parameters

  1. string $className

RETURN

string


# className()

Provides access to the class name mapped by key.

# Parameters

  1. string $key

RETURN

string


# getGenerator()

Provides a generator with className => key

RETURN

Generator


# toArray()

Provides access to the class map className => key

RETURN

array


# keys()

Provides access to the object keys.

RETURN

array


Last Updated: 1/16/2021, 9:23:54 PM