PHPSemVerChecker\Operation\Visibility::get PHP Method

get() public static method

public static get ( integer $visibility ) : integer
$visibility integer
return integer
    public static function get($visibility)
    {
        $mapping = self::getMapping();
        return $mapping[$visibility];
    }

Usage Example

 /**
  * @return string
  */
 public function getCode()
 {
     return $this->code[$this->context][Visibility::get($this->visibility)];
 }