You are here

public function Blacklist::addStaticAttribute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/global-state/src/Blacklist.php \SebastianBergmann\GlobalState\Blacklist::addStaticAttribute()

Parameters

string $className:

string $attributeName:

File

vendor/sebastian/global-state/src/Blacklist.php, line 131

Class

Blacklist
A blacklist for global state elements that should not be snapshotted.

Namespace

SebastianBergmann\GlobalState

Code

public function addStaticAttribute($className, $attributeName) {
  if (!isset($this->staticAttributes[$className])) {
    $this->staticAttributes[$className] = array();
  }
  $this->staticAttributes[$className][$attributeName] = true;
}