public function setVisibility($type, $value) { $this->visibility = ['type' => $type, 'value' => $value]; return $this; }