Fenos\Notifynder\Contracts\NotificationDB::readLimit PHP Method

readLimit() public method

Read notifications in base the number Given.
public readLimit ( $toId, $entity, $numbers, $order ) : integer
$toId
$entity
$numbers
$order
return integer
    public function readLimit($toId, $entity, $numbers, $order);

Usage Example

Ejemplo n.º 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);
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotificationDB::readLimit