public function addStaticProperty($name, $value = null) { if ($this->isFinalized) { throw new FinalizedMockException(); } $this->customStaticProperties[$name] = $value; return $this; }