Class: PHP::Operator::Regex::Match

Inherits:
PHP::Operator::Binary show all
Defined in:
lib/php/syntax/operator.rb

Overview

See Also:

Instance Method Summary

Methods inherited from PHP::Operator::Binary

#initialize, #operands

Methods inherited from PHP::Operator

for, #operands, #to_a

Methods inherited from PHP::Node

#<<, #<=>, #children?, #each, #indent, #indent=, #initialize, #to_s

Constructor Details

This class inherits a constructor from PHP::Operator::Binary

Instance Method Details

- (Object) operator



309
# File 'lib/php/syntax/operator.rb', line 309

def operator() :preg_match end

- (Object) to_php



311
312
313
# File 'lib/php/syntax/operator.rb', line 311

def to_php
  "#{operator}(#{lhs}, #{rhs})"
end