original_string: public function isValid($now = null)
      {
          if ($this->expire == null
              || $this->expire == '-'
              || $this->expire <= 0
          ) {
              //No expire, or unset? assume valid.
              return true;
          }
  
          if ($now === null || !is_numeric($now)) {
              $now = time();
          }
  
          //If now is before expire, it is still valid.
          return ($now > $this->expire) ? false : true;
      }
code: public function isValid($now = null)
      {
          if ($this->expire == null
              || $this->expire == '-'
              || $this->expire <= 0
          ) {
              //No expire, or unset? assume valid.
              return true;
          }
  
          if ($now === null || !is_numeric($now)) {
              $now = time();
          }
  
          //If now is before expire, it is still valid.
          return ($now > $this->expire) ? false : true;
      }
code_tokens: public function isValid ( $ now = null ) { if ( $ this -> expire == null || $ this -> expire == '-' || $ this -> expire <= 0 ) { //No expire, or unset? assume valid. return true ; } if ( $ now === null || ! is_numeric ( $ now ) ) { $ now = time ( ) ; } //If now is before expire, it is still valid. return ( $ now > $ this -> expire ) ? false : true ; }
docstring: Checks whether this PClass is valid.
  
  @param int $now Unix timestamp
  
  @return bool
docstring_tokens: Checks whether this PClass is valid .