Lisphp_Quote::__toString PHP Method

__toString() public method

public __toString ( )
    public function __toString()
    {
        return ':' . $this->form->__toString();
    }

Usage Example

Example #1
0
 public function testToString()
 {
     $quote = new Lisphp_Quote(Lisphp_Symbol::get('abc'));
     $this->assertEquals(':abc', $quote->__toString());
     $quote = new Lisphp_Quote(new Lisphp_List(array(Lisphp_Symbol::get('define'), Lisphp_Symbol::get('pi'), new Lisphp_Literal(3.14))));
     $this->assertEquals(':(define pi 3.14)', $quote->__toString());
 }
All Usage Examples Of Lisphp_Quote::__toString