Skip to content

Class Enricher

abstract Class \Klitsche\Dog\Enrichers\Enricher

Methods

__construct()

public __construct ( 
    string $id, 
    \Klitsche\Dog\ConfigInterface $config
 ): 
Parameters
id string
config \Klitsche\Dog\ConfigInterface

create()

public static create ( 
    string $id, 
    \Klitsche\Dog\ConfigInterface $config
 ): self
Parameters
id string
config \Klitsche\Dog\ConfigInterface
Returns
self

enrich()

public enrich ( 
    \Klitsche\Dog\Enrichers\DataAwareInterface $dataHolder
 ): void
Parameters
dataHolder \Klitsche\Dog\Enrichers\DataAwareInterface

getId()

public getId (  ): string
Returns
string

prepare()

public prepare (  ): void

Test Coverage 💚

  • 💚 Lines: 100% (4 / 4)
  • 💚 Methods: 100% (3 / 3)

Extended by