public function setVisibility(string $visibility) {
		if ($visibility !== self::VISIBILITY_PRIVATE
				&& $visibility !== self::VISIBILITY_PROTECTED
				&& $visibility !== self::VISIBILITY_PUBLIC) {
			throw new \InvalidArgumentException(sprintf('The visibility "%s" does not exist.', $visibility));
		}

		$this->visibility = $visibility;

		return $this;
	}
public function setVisibility(string $visibility) {
		if ($visibility !== self::VISIBILITY_PRIVATE
				&& $visibility !== self::VISIBILITY_PROTECTED
				&& $visibility !== self::VISIBILITY_PUBLIC) {
			throw new \InvalidArgumentException(sprintf('The visibility "%s" does not exist.', $visibility));
		}

		$this->visibility = $visibility;

		return $this;
	}
public function setVisibility ( string $ visibility ) { if ( $ visibility !== self :: VISIBILITY_PRIVATE && $ visibility !== self :: VISIBILITY_PROTECTED && $ visibility !== self :: VISIBILITY_PUBLIC ) { throw new \ InvalidArgumentException ( sprintf ( 'The visibility "%s" does not exist.' , $ visibility ) ) ; } $ this -> visibility = $ visibility ; return $ this ; }
Sets the members visibility

@see self::VISIBILITY_PUBLIC
@see self::VISIBILITY_PROTECTED
@see self::VISIBILITY_PRIVATE
@param string $visibility the new visibility
@return $this
Sets the members visibility