public function to($to = null) { if ($to === null) { return $this->to; } $this->to = (int) $to; return $this; }
/** * @covers Imbo\Resource\Images\Query::to */ public function testTo() { $value = 123123123; $this->assertNull($this->query->to()); $this->assertSame($this->query, $this->query->to($value)); $this->assertSame($value, $this->query->to()); }