PHP Class ManaPHP\Task\Metadata

Inheritance: extends ManaPHP\Component, implements ManaPHP\Task\MetadataInterface
Mostra file Open project: manaphp/manaphp

Public Properties

Property Type Description
$adapter ManaPHP\Task\Metadata\AdapterInterface

Protected Properties

Property Type Description
$_prefix string
$_taskIds array

Public Methods

Method Description
__construct ( string | array | ManaPHP\Task\Metadata\AdapterInterface $options = [] ) Metadata constructor.
delete ( string $task, string $field ) : void
exists ( string $task, string $field ) : boolean
get ( string $task, string $field ) : mixed
getAll ( string $task ) : array
reset ( string $task ) : void
set ( string $task, string $field, mixed $value ) : void
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static

Protected Methods

Method Description
_formatKey ( string $task, string $field ) : string

Method Details

__construct() public method

Metadata constructor.
public __construct ( string | array | ManaPHP\Task\Metadata\AdapterInterface $options = [] )
$options string | array | ManaPHP\Task\Metadata\AdapterInterface

_formatKey() protected method

protected _formatKey ( string $task, string $field ) : string
$task string
$field string
return string

delete() public method

public delete ( string $task, string $field ) : void
$task string
$field string
return void

exists() public method

public exists ( string $task, string $field ) : boolean
$task string
$field string
return boolean

get() public method

public get ( string $task, string $field ) : mixed
$task string
$field string
return mixed

getAll() public method

public getAll ( string $task ) : array
$task string
return array

reset() public method

public reset ( string $task ) : void
$task string
return void

set() public method

public set ( string $task, string $field, mixed $value ) : void
$task string
$field string
$value mixed
return void

setDependencyInjector() public method

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
return static

Property Details

$_prefix protected_oe property

protected string $_prefix
return string

$_taskIds protected_oe property

protected array $_taskIds
return array

$adapter public_oe property

public AdapterInterface,ManaPHP\Task\Metadata $adapter
return ManaPHP\Task\Metadata\AdapterInterface