예제 #1
0
파일: Bool.php 프로젝트: sntools/types
 /**
  * Boolean to integer conversion
  * @return Int
  */
 public final function toInt()
 {
     $int = null;
     Int::create($int, $this);
     return $int;
 }
예제 #2
0
파일: Flag.php 프로젝트: sntools/types
 /**
  *
  * @param int $val
  */
 public function removeFlag($val)
 {
     Int::create($val);
     $this->setValue($val->bw_not()->bw_and($this));
 }