MediaWiki  master
ConstantDependency.php
Go to the documentation of this file.
1 <?php
28  private $name;
29  private $value;
30 
31  public function __construct( $name ) {
32  $this->name = $name;
33  $this->value = constant( $name );
34  }
35 
39  public function isExpired() {
40  return constant( $this->name ) != $this->value;
41  }
42 }
ConstantDependency
Definition: ConstantDependency.php:27
ConstantDependency\isExpired
isExpired()
Definition: ConstantDependency.php:39
ConstantDependency\$value
$value
Definition: ConstantDependency.php:29
CacheDependency
Definition: CacheDependency.php:27
ConstantDependency\__construct
__construct( $name)
Definition: ConstantDependency.php:31
ConstantDependency\$name
$name
Definition: ConstantDependency.php:28