/**
  * @inheritdoc
  * @return VisibilityMethod
  */
 public function setVisibility($visibility)
 {
     Visibility::isValid($visibility);
     $this->visibility = $visibility;
     return $this;
 }
 public function testIsValid()
 {
     $this->assertTrue(Visibility::isValid('public'));
 }