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

Read notifications in base the number Given.
public readLimit ( $toId, $entity, $numbers, $order ) : integer
$toId
$entity
$numbers
$order
Результат integer
Пример #1
0
 /** @test */
 public function it_read_notifications_limit_to_a_given_number(NotificationDB $notificationRepo)
 {
     $to_id = 1;
     $numbers = 5;
     $order = 'asc';
     $notificationRepo->readLimit($to_id, null, $numbers, $order)->shouldBeCalled()->willReturn($numbers);
     $this->readLimit($to_id, $numbers, $order)->shouldReturn($numbers);
 }
 /**
  * Read notifications in base the number
  * Given
  *
  * @param         $to_id
  * @param         $numbers
  * @param  string $order
  * @return mixed
  */
 public function readLimit($to_id, $numbers, $order = "ASC")
 {
     return $this->notifynderRepo->readLimit($to_id, $this->entity, $numbers, $order);
 }