Skip to content
Snippets Groups Projects

1.x

Merged Bartek Jaskulski requested to merge 1.x into review
2 files
+ 36
4
Compare changes
  • Side-by-side
  • Inline

Files

 
<?php
 
 
declare(strict_types=1);
 
 
namespace WPDesk\Init\Binding\Definition;
 
 
use WPDesk\Init\Binding\Definition;
 
 
/** @implements Definition<mixed> */
 
class UnknownDefinition implements Definition {
 
 
/** @var ?string */
 
private $hook;
 
 
/** @var mixed */
 
private $value;
 
 
public function __construct(
 
$value,
 
?string $hook = null,
 
) {
 
$this->value = $value;
 
$this->hook = $hook;
 
}
 
 
public function hook(): ?string {
 
return $this->hook;
 
}
 
 
public function value() {
 
return $this->value;
 
}
 
}
Loading