public function setAllowInherit($allowInherit) { $this->allowInherit = (bool) $allowInherit; return $this; }