original_string: public function size($len)
      {
          $len = (int) $len;
          if (is_string($this->value)) {
              $message = ['%s {{does not have|has}} a string length of %s', $this->value, $len];
              $this->assert((strlen($this->value) === $len), $message);
          }
  
          if (is_int($this->value)) {
              $message = ['Integer %s {{does not have|has}} a size of %s', $this->value, $len];
              $this->assert(($this->value === $len), $message);
          }
  
          if (is_array($this->value)) {
              $message = ['Array {{does not have|has}} a size of %s', $len];
              $this->assert((count($this->value) === $len), $message);
          }
  
          return $this;
      }
code: public function size($len)
      {
          $len = (int) $len;
          if (is_string($this->value)) {
              $message = ['%s {{does not have|has}} a string length of %s', $this->value, $len];
              $this->assert((strlen($this->value) === $len), $message);
          }
  
          if (is_int($this->value)) {
              $message = ['Integer %s {{does not have|has}} a size of %s', $this->value, $len];
              $this->assert(($this->value === $len), $message);
          }
  
          if (is_array($this->value)) {
              $message = ['Array {{does not have|has}} a size of %s', $len];
              $this->assert((count($this->value) === $len), $message);
          }
  
          return $this;
      }
code_tokens: public function size ( $ len ) { $ len = ( int ) $ len ; if ( is_string ( $ this -> value ) ) { $ message = [ '%s {{does not have|has}} a string length of %s' , $ this -> value , $ len ] ; $ this -> assert ( ( strlen ( $ this -> value ) === $ len ) , $ message ) ; } if ( is_int ( $ this -> value ) ) { $ message = [ 'Integer %s {{does not have|has}} a size of %s' , $ this -> value , $ len ] ; $ this -> assert ( ( $ this -> value === $ len ) , $ message ) ; } if ( is_array ( $ this -> value ) ) { $ message = [ 'Array {{does not have|has}} a size of %s' , $ len ] ; $ this -> assert ( ( count ( $ this -> value ) === $ len ) , $ message ) ; } return $ this ; }
docstring: Check the size of the value.
  
  @param int $len The length to test
  
  @throws AssertionFailureException
  
  @return self
docstring_tokens: Check the size of the value .