comment() публичный Метод

Comment will have no effect on query, but will be passed along so data source can log it.
public comment ( string | null $comment = null ) : string | lithium\data\Query
$comment string | null
Результат string | lithium\data\Query
Пример #1
0
 public function testComment()
 {
     $query = new Query($this->_queryArr);
     $expected = 'Find all posts by author 12';
     $result = $query->comment();
     $this->assertEqual($expected, $result);
     $query->comment('Comment lorem');
     $expected = 'Comment lorem';
     $result = $query->comment();
     $this->assertEqual($expected, $result);
 }