Skip to content

Trait DataTrait

Trait \Klitsche\Dog\Enrichers\DataTrait

Methods

setData()

public setData ( 
    string $id, 
    mixed $value
 ): void
Parameters
id string
value mixed

getData()

public getData ( 
    string $id
 ): mixed
Parameters
id string
Returns
mixed Null if data is not set

Test Coverage 💚

  • 💚 Lines: 100% (2 / 2)
  • 💚 Methods: 100% (2 / 2)

Used by