@@ -4,47 +4,47 @@ |
||
4 | 4 | |
5 | 5 | interface Guard |
6 | 6 | { |
7 | - /** |
|
8 | - * Determine if the current user is authenticated. |
|
9 | - * |
|
10 | - * @return bool |
|
11 | - */ |
|
12 | - public function check(); |
|
7 | + /** |
|
8 | + * Determine if the current user is authenticated. |
|
9 | + * |
|
10 | + * @return bool |
|
11 | + */ |
|
12 | + public function check(); |
|
13 | 13 | |
14 | - /** |
|
15 | - * Determine if the current user is a guest. |
|
16 | - * |
|
17 | - * @return bool |
|
18 | - */ |
|
19 | - public function guest(); |
|
14 | + /** |
|
15 | + * Determine if the current user is a guest. |
|
16 | + * |
|
17 | + * @return bool |
|
18 | + */ |
|
19 | + public function guest(); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Get the currently authenticated user. |
|
23 | - * |
|
24 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
25 | - */ |
|
26 | - public function user(); |
|
21 | + /** |
|
22 | + * Get the currently authenticated user. |
|
23 | + * |
|
24 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
25 | + */ |
|
26 | + public function user(); |
|
27 | 27 | |
28 | - /** |
|
29 | - * Get the ID for the currently authenticated user. |
|
30 | - * |
|
31 | - * @return int|string|null |
|
32 | - */ |
|
33 | - public function id(); |
|
28 | + /** |
|
29 | + * Get the ID for the currently authenticated user. |
|
30 | + * |
|
31 | + * @return int|string|null |
|
32 | + */ |
|
33 | + public function id(); |
|
34 | 34 | |
35 | - /** |
|
36 | - * Validate a user's credentials. |
|
37 | - * |
|
38 | - * @param array $credentials |
|
39 | - * @return bool |
|
40 | - */ |
|
41 | - public function validate(array $credentials = []); |
|
35 | + /** |
|
36 | + * Validate a user's credentials. |
|
37 | + * |
|
38 | + * @param array $credentials |
|
39 | + * @return bool |
|
40 | + */ |
|
41 | + public function validate(array $credentials = []); |
|
42 | 42 | |
43 | - /** |
|
44 | - * Set the current user. |
|
45 | - * |
|
46 | - * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
47 | - * @return void |
|
48 | - */ |
|
49 | - public function setUser(Authenticatable $user); |
|
43 | + /** |
|
44 | + * Set the current user. |
|
45 | + * |
|
46 | + * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
47 | + * @return void |
|
48 | + */ |
|
49 | + public function setUser(Authenticatable $user); |
|
50 | 50 | } |
@@ -4,31 +4,31 @@ |
||
4 | 4 | |
5 | 5 | interface MustVerifyEmail |
6 | 6 | { |
7 | - /** |
|
8 | - * Determine if the user has verified their email address. |
|
9 | - * |
|
10 | - * @return bool |
|
11 | - */ |
|
12 | - public function hasVerifiedEmail(); |
|
7 | + /** |
|
8 | + * Determine if the user has verified their email address. |
|
9 | + * |
|
10 | + * @return bool |
|
11 | + */ |
|
12 | + public function hasVerifiedEmail(); |
|
13 | 13 | |
14 | - /** |
|
15 | - * Mark the given user's email as verified. |
|
16 | - * |
|
17 | - * @return bool |
|
18 | - */ |
|
19 | - public function markEmailAsVerified(); |
|
14 | + /** |
|
15 | + * Mark the given user's email as verified. |
|
16 | + * |
|
17 | + * @return bool |
|
18 | + */ |
|
19 | + public function markEmailAsVerified(); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Send the email verification notification. |
|
23 | - * |
|
24 | - * @return void |
|
25 | - */ |
|
26 | - public function sendEmailVerificationNotification(); |
|
21 | + /** |
|
22 | + * Send the email verification notification. |
|
23 | + * |
|
24 | + * @return void |
|
25 | + */ |
|
26 | + public function sendEmailVerificationNotification(); |
|
27 | 27 | |
28 | - /** |
|
29 | - * Get the email address that should be used for verification. |
|
30 | - * |
|
31 | - * @return string |
|
32 | - */ |
|
33 | - public function getEmailForVerification(); |
|
28 | + /** |
|
29 | + * Get the email address that should be used for verification. |
|
30 | + * |
|
31 | + * @return string |
|
32 | + */ |
|
33 | + public function getEmailForVerification(); |
|
34 | 34 | } |
@@ -4,147 +4,147 @@ |
||
4 | 4 | |
5 | 5 | interface Gate |
6 | 6 | { |
7 | - /** |
|
8 | - * Determine if a given ability has been defined. |
|
9 | - * |
|
10 | - * @param string $ability |
|
11 | - * @return bool |
|
12 | - */ |
|
13 | - public function has($ability); |
|
14 | - |
|
15 | - /** |
|
16 | - * Define a new ability. |
|
17 | - * |
|
18 | - * @param string $ability |
|
19 | - * @param callable|string $callback |
|
20 | - * @return $this |
|
21 | - */ |
|
22 | - public function define($ability, $callback); |
|
23 | - |
|
24 | - /** |
|
25 | - * Define abilities for a resource. |
|
26 | - * |
|
27 | - * @param string $name |
|
28 | - * @param string $class |
|
29 | - * @param array|null $abilities |
|
30 | - * @return $this |
|
31 | - */ |
|
32 | - public function resource($name, $class, array $abilities = null); |
|
33 | - |
|
34 | - /** |
|
35 | - * Define a policy class for a given class type. |
|
36 | - * |
|
37 | - * @param string $class |
|
38 | - * @param string $policy |
|
39 | - * @return $this |
|
40 | - */ |
|
41 | - public function policy($class, $policy); |
|
42 | - |
|
43 | - /** |
|
44 | - * Register a callback to run before all Gate checks. |
|
45 | - * |
|
46 | - * @param callable $callback |
|
47 | - * @return $this |
|
48 | - */ |
|
49 | - public function before(callable $callback); |
|
50 | - |
|
51 | - /** |
|
52 | - * Register a callback to run after all Gate checks. |
|
53 | - * |
|
54 | - * @param callable $callback |
|
55 | - * @return $this |
|
56 | - */ |
|
57 | - public function after(callable $callback); |
|
58 | - |
|
59 | - /** |
|
60 | - * Determine if the given ability should be granted for the current user. |
|
61 | - * |
|
62 | - * @param string $ability |
|
63 | - * @param array|mixed $arguments |
|
64 | - * @return bool |
|
65 | - */ |
|
66 | - public function allows($ability, $arguments = []); |
|
67 | - |
|
68 | - /** |
|
69 | - * Determine if the given ability should be denied for the current user. |
|
70 | - * |
|
71 | - * @param string $ability |
|
72 | - * @param array|mixed $arguments |
|
73 | - * @return bool |
|
74 | - */ |
|
75 | - public function denies($ability, $arguments = []); |
|
76 | - |
|
77 | - /** |
|
78 | - * Determine if all of the given abilities should be granted for the current user. |
|
79 | - * |
|
80 | - * @param iterable|string $abilities |
|
81 | - * @param array|mixed $arguments |
|
82 | - * @return bool |
|
83 | - */ |
|
84 | - public function check($abilities, $arguments = []); |
|
85 | - |
|
86 | - /** |
|
87 | - * Determine if any one of the given abilities should be granted for the current user. |
|
88 | - * |
|
89 | - * @param iterable|string $abilities |
|
90 | - * @param array|mixed $arguments |
|
91 | - * @return bool |
|
92 | - */ |
|
93 | - public function any($abilities, $arguments = []); |
|
94 | - |
|
95 | - /** |
|
96 | - * Determine if the given ability should be granted for the current user. |
|
97 | - * |
|
98 | - * @param string $ability |
|
99 | - * @param array|mixed $arguments |
|
100 | - * @return \Illuminate\Auth\Access\Response |
|
101 | - * |
|
102 | - * @throws \Illuminate\Auth\Access\AuthorizationException |
|
103 | - */ |
|
104 | - public function authorize($ability, $arguments = []); |
|
105 | - |
|
106 | - /** |
|
107 | - * Inspect the user for the given ability. |
|
108 | - * |
|
109 | - * @param string $ability |
|
110 | - * @param array|mixed $arguments |
|
111 | - * @return \Illuminate\Auth\Access\Response |
|
112 | - */ |
|
113 | - public function inspect($ability, $arguments = []); |
|
114 | - |
|
115 | - /** |
|
116 | - * Get the raw result from the authorization callback. |
|
117 | - * |
|
118 | - * @param string $ability |
|
119 | - * @param array|mixed $arguments |
|
120 | - * @return mixed |
|
121 | - * |
|
122 | - * @throws \Illuminate\Auth\Access\AuthorizationException |
|
123 | - */ |
|
124 | - public function raw($ability, $arguments = []); |
|
125 | - |
|
126 | - /** |
|
127 | - * Get a policy instance for a given class. |
|
128 | - * |
|
129 | - * @param object|string $class |
|
130 | - * @return mixed |
|
131 | - * |
|
132 | - * @throws \InvalidArgumentException |
|
133 | - */ |
|
134 | - public function getPolicyFor($class); |
|
135 | - |
|
136 | - /** |
|
137 | - * Get a guard instance for the given user. |
|
138 | - * |
|
139 | - * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user |
|
140 | - * @return static |
|
141 | - */ |
|
142 | - public function forUser($user); |
|
143 | - |
|
144 | - /** |
|
145 | - * Get all of the defined abilities. |
|
146 | - * |
|
147 | - * @return array |
|
148 | - */ |
|
149 | - public function abilities(); |
|
7 | + /** |
|
8 | + * Determine if a given ability has been defined. |
|
9 | + * |
|
10 | + * @param string $ability |
|
11 | + * @return bool |
|
12 | + */ |
|
13 | + public function has($ability); |
|
14 | + |
|
15 | + /** |
|
16 | + * Define a new ability. |
|
17 | + * |
|
18 | + * @param string $ability |
|
19 | + * @param callable|string $callback |
|
20 | + * @return $this |
|
21 | + */ |
|
22 | + public function define($ability, $callback); |
|
23 | + |
|
24 | + /** |
|
25 | + * Define abilities for a resource. |
|
26 | + * |
|
27 | + * @param string $name |
|
28 | + * @param string $class |
|
29 | + * @param array|null $abilities |
|
30 | + * @return $this |
|
31 | + */ |
|
32 | + public function resource($name, $class, array $abilities = null); |
|
33 | + |
|
34 | + /** |
|
35 | + * Define a policy class for a given class type. |
|
36 | + * |
|
37 | + * @param string $class |
|
38 | + * @param string $policy |
|
39 | + * @return $this |
|
40 | + */ |
|
41 | + public function policy($class, $policy); |
|
42 | + |
|
43 | + /** |
|
44 | + * Register a callback to run before all Gate checks. |
|
45 | + * |
|
46 | + * @param callable $callback |
|
47 | + * @return $this |
|
48 | + */ |
|
49 | + public function before(callable $callback); |
|
50 | + |
|
51 | + /** |
|
52 | + * Register a callback to run after all Gate checks. |
|
53 | + * |
|
54 | + * @param callable $callback |
|
55 | + * @return $this |
|
56 | + */ |
|
57 | + public function after(callable $callback); |
|
58 | + |
|
59 | + /** |
|
60 | + * Determine if the given ability should be granted for the current user. |
|
61 | + * |
|
62 | + * @param string $ability |
|
63 | + * @param array|mixed $arguments |
|
64 | + * @return bool |
|
65 | + */ |
|
66 | + public function allows($ability, $arguments = []); |
|
67 | + |
|
68 | + /** |
|
69 | + * Determine if the given ability should be denied for the current user. |
|
70 | + * |
|
71 | + * @param string $ability |
|
72 | + * @param array|mixed $arguments |
|
73 | + * @return bool |
|
74 | + */ |
|
75 | + public function denies($ability, $arguments = []); |
|
76 | + |
|
77 | + /** |
|
78 | + * Determine if all of the given abilities should be granted for the current user. |
|
79 | + * |
|
80 | + * @param iterable|string $abilities |
|
81 | + * @param array|mixed $arguments |
|
82 | + * @return bool |
|
83 | + */ |
|
84 | + public function check($abilities, $arguments = []); |
|
85 | + |
|
86 | + /** |
|
87 | + * Determine if any one of the given abilities should be granted for the current user. |
|
88 | + * |
|
89 | + * @param iterable|string $abilities |
|
90 | + * @param array|mixed $arguments |
|
91 | + * @return bool |
|
92 | + */ |
|
93 | + public function any($abilities, $arguments = []); |
|
94 | + |
|
95 | + /** |
|
96 | + * Determine if the given ability should be granted for the current user. |
|
97 | + * |
|
98 | + * @param string $ability |
|
99 | + * @param array|mixed $arguments |
|
100 | + * @return \Illuminate\Auth\Access\Response |
|
101 | + * |
|
102 | + * @throws \Illuminate\Auth\Access\AuthorizationException |
|
103 | + */ |
|
104 | + public function authorize($ability, $arguments = []); |
|
105 | + |
|
106 | + /** |
|
107 | + * Inspect the user for the given ability. |
|
108 | + * |
|
109 | + * @param string $ability |
|
110 | + * @param array|mixed $arguments |
|
111 | + * @return \Illuminate\Auth\Access\Response |
|
112 | + */ |
|
113 | + public function inspect($ability, $arguments = []); |
|
114 | + |
|
115 | + /** |
|
116 | + * Get the raw result from the authorization callback. |
|
117 | + * |
|
118 | + * @param string $ability |
|
119 | + * @param array|mixed $arguments |
|
120 | + * @return mixed |
|
121 | + * |
|
122 | + * @throws \Illuminate\Auth\Access\AuthorizationException |
|
123 | + */ |
|
124 | + public function raw($ability, $arguments = []); |
|
125 | + |
|
126 | + /** |
|
127 | + * Get a policy instance for a given class. |
|
128 | + * |
|
129 | + * @param object|string $class |
|
130 | + * @return mixed |
|
131 | + * |
|
132 | + * @throws \InvalidArgumentException |
|
133 | + */ |
|
134 | + public function getPolicyFor($class); |
|
135 | + |
|
136 | + /** |
|
137 | + * Get a guard instance for the given user. |
|
138 | + * |
|
139 | + * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user |
|
140 | + * @return static |
|
141 | + */ |
|
142 | + public function forUser($user); |
|
143 | + |
|
144 | + /** |
|
145 | + * Get all of the defined abilities. |
|
146 | + * |
|
147 | + * @return array |
|
148 | + */ |
|
149 | + public function abilities(); |
|
150 | 150 | } |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | interface Authorizable |
6 | 6 | { |
7 | - /** |
|
8 | - * Determine if the entity has a given ability. |
|
9 | - * |
|
10 | - * @param iterable|string $abilities |
|
11 | - * @param array|mixed $arguments |
|
12 | - * @return bool |
|
13 | - */ |
|
14 | - public function can($abilities, $arguments = []); |
|
7 | + /** |
|
8 | + * Determine if the entity has a given ability. |
|
9 | + * |
|
10 | + * @param iterable|string $abilities |
|
11 | + * @param array|mixed $arguments |
|
12 | + * @return bool |
|
13 | + */ |
|
14 | + public function can($abilities, $arguments = []); |
|
15 | 15 | } |
@@ -4,18 +4,18 @@ |
||
4 | 4 | |
5 | 5 | interface CanResetPassword |
6 | 6 | { |
7 | - /** |
|
8 | - * Get the e-mail address where password reset links are sent. |
|
9 | - * |
|
10 | - * @return string |
|
11 | - */ |
|
12 | - public function getEmailForPasswordReset(); |
|
7 | + /** |
|
8 | + * Get the e-mail address where password reset links are sent. |
|
9 | + * |
|
10 | + * @return string |
|
11 | + */ |
|
12 | + public function getEmailForPasswordReset(); |
|
13 | 13 | |
14 | - /** |
|
15 | - * Send the password reset notification. |
|
16 | - * |
|
17 | - * @param string $token |
|
18 | - * @return void |
|
19 | - */ |
|
20 | - public function sendPasswordResetNotification($token); |
|
14 | + /** |
|
15 | + * Send the password reset notification. |
|
16 | + * |
|
17 | + * @param string $token |
|
18 | + * @return void |
|
19 | + */ |
|
20 | + public function sendPasswordResetNotification($token); |
|
21 | 21 | } |
@@ -4,61 +4,61 @@ |
||
4 | 4 | |
5 | 5 | interface Kernel |
6 | 6 | { |
7 | - /** |
|
8 | - * Bootstrap the application for artisan commands. |
|
9 | - * |
|
10 | - * @return void |
|
11 | - */ |
|
12 | - public function bootstrap(); |
|
7 | + /** |
|
8 | + * Bootstrap the application for artisan commands. |
|
9 | + * |
|
10 | + * @return void |
|
11 | + */ |
|
12 | + public function bootstrap(); |
|
13 | 13 | |
14 | - /** |
|
15 | - * Handle an incoming console command. |
|
16 | - * |
|
17 | - * @param \Symfony\Component\Console\Input\InputInterface $input |
|
18 | - * @param \Symfony\Component\Console\Output\OutputInterface|null $output |
|
19 | - * @return int |
|
20 | - */ |
|
21 | - public function handle($input, $output = null); |
|
14 | + /** |
|
15 | + * Handle an incoming console command. |
|
16 | + * |
|
17 | + * @param \Symfony\Component\Console\Input\InputInterface $input |
|
18 | + * @param \Symfony\Component\Console\Output\OutputInterface|null $output |
|
19 | + * @return int |
|
20 | + */ |
|
21 | + public function handle($input, $output = null); |
|
22 | 22 | |
23 | - /** |
|
24 | - * Run an Artisan console command by name. |
|
25 | - * |
|
26 | - * @param string $command |
|
27 | - * @param array $parameters |
|
28 | - * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer |
|
29 | - * @return int |
|
30 | - */ |
|
31 | - public function call($command, array $parameters = [], $outputBuffer = null); |
|
23 | + /** |
|
24 | + * Run an Artisan console command by name. |
|
25 | + * |
|
26 | + * @param string $command |
|
27 | + * @param array $parameters |
|
28 | + * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer |
|
29 | + * @return int |
|
30 | + */ |
|
31 | + public function call($command, array $parameters = [], $outputBuffer = null); |
|
32 | 32 | |
33 | - /** |
|
34 | - * Queue an Artisan console command by name. |
|
35 | - * |
|
36 | - * @param string $command |
|
37 | - * @param array $parameters |
|
38 | - * @return \Illuminate\Foundation\Bus\PendingDispatch |
|
39 | - */ |
|
40 | - public function queue($command, array $parameters = []); |
|
33 | + /** |
|
34 | + * Queue an Artisan console command by name. |
|
35 | + * |
|
36 | + * @param string $command |
|
37 | + * @param array $parameters |
|
38 | + * @return \Illuminate\Foundation\Bus\PendingDispatch |
|
39 | + */ |
|
40 | + public function queue($command, array $parameters = []); |
|
41 | 41 | |
42 | - /** |
|
43 | - * Get all of the commands registered with the console. |
|
44 | - * |
|
45 | - * @return array |
|
46 | - */ |
|
47 | - public function all(); |
|
42 | + /** |
|
43 | + * Get all of the commands registered with the console. |
|
44 | + * |
|
45 | + * @return array |
|
46 | + */ |
|
47 | + public function all(); |
|
48 | 48 | |
49 | - /** |
|
50 | - * Get the output for the last run command. |
|
51 | - * |
|
52 | - * @return string |
|
53 | - */ |
|
54 | - public function output(); |
|
49 | + /** |
|
50 | + * Get the output for the last run command. |
|
51 | + * |
|
52 | + * @return string |
|
53 | + */ |
|
54 | + public function output(); |
|
55 | 55 | |
56 | - /** |
|
57 | - * Terminate the application. |
|
58 | - * |
|
59 | - * @param \Symfony\Component\Console\Input\InputInterface $input |
|
60 | - * @param int $status |
|
61 | - * @return void |
|
62 | - */ |
|
63 | - public function terminate($input, $status); |
|
56 | + /** |
|
57 | + * Terminate the application. |
|
58 | + * |
|
59 | + * @param \Symfony\Component\Console\Input\InputInterface $input |
|
60 | + * @param int $status |
|
61 | + * @return void |
|
62 | + */ |
|
63 | + public function terminate($input, $status); |
|
64 | 64 | } |
@@ -4,20 +4,20 @@ |
||
4 | 4 | |
5 | 5 | interface Application |
6 | 6 | { |
7 | - /** |
|
8 | - * Run an Artisan console command by name. |
|
9 | - * |
|
10 | - * @param string $command |
|
11 | - * @param array $parameters |
|
12 | - * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer |
|
13 | - * @return int |
|
14 | - */ |
|
15 | - public function call($command, array $parameters = [], $outputBuffer = null); |
|
7 | + /** |
|
8 | + * Run an Artisan console command by name. |
|
9 | + * |
|
10 | + * @param string $command |
|
11 | + * @param array $parameters |
|
12 | + * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer |
|
13 | + * @return int |
|
14 | + */ |
|
15 | + public function call($command, array $parameters = [], $outputBuffer = null); |
|
16 | 16 | |
17 | - /** |
|
18 | - * Get the output from the last command. |
|
19 | - * |
|
20 | - * @return string |
|
21 | - */ |
|
22 | - public function output(); |
|
17 | + /** |
|
18 | + * Get the output from the last command. |
|
19 | + * |
|
20 | + * @return string |
|
21 | + */ |
|
22 | + public function output(); |
|
23 | 23 | } |
@@ -4,121 +4,121 @@ |
||
4 | 4 | |
5 | 5 | interface Paginator |
6 | 6 | { |
7 | - /** |
|
8 | - * Get the URL for a given page. |
|
9 | - * |
|
10 | - * @param int $page |
|
11 | - * @return string |
|
12 | - */ |
|
13 | - public function url($page); |
|
14 | - |
|
15 | - /** |
|
16 | - * Add a set of query string values to the paginator. |
|
17 | - * |
|
18 | - * @param array|string $key |
|
19 | - * @param string|null $value |
|
20 | - * @return $this |
|
21 | - */ |
|
22 | - public function appends($key, $value = null); |
|
23 | - |
|
24 | - /** |
|
25 | - * Get / set the URL fragment to be appended to URLs. |
|
26 | - * |
|
27 | - * @param string|null $fragment |
|
28 | - * @return $this|string |
|
29 | - */ |
|
30 | - public function fragment($fragment = null); |
|
31 | - |
|
32 | - /** |
|
33 | - * The URL for the next page, or null. |
|
34 | - * |
|
35 | - * @return string|null |
|
36 | - */ |
|
37 | - public function nextPageUrl(); |
|
38 | - |
|
39 | - /** |
|
40 | - * Get the URL for the previous page, or null. |
|
41 | - * |
|
42 | - * @return string|null |
|
43 | - */ |
|
44 | - public function previousPageUrl(); |
|
45 | - |
|
46 | - /** |
|
47 | - * Get all of the items being paginated. |
|
48 | - * |
|
49 | - * @return array |
|
50 | - */ |
|
51 | - public function items(); |
|
52 | - |
|
53 | - /** |
|
54 | - * Get the "index" of the first item being paginated. |
|
55 | - * |
|
56 | - * @return int |
|
57 | - */ |
|
58 | - public function firstItem(); |
|
59 | - |
|
60 | - /** |
|
61 | - * Get the "index" of the last item being paginated. |
|
62 | - * |
|
63 | - * @return int |
|
64 | - */ |
|
65 | - public function lastItem(); |
|
66 | - |
|
67 | - /** |
|
68 | - * Determine how many items are being shown per page. |
|
69 | - * |
|
70 | - * @return int |
|
71 | - */ |
|
72 | - public function perPage(); |
|
73 | - |
|
74 | - /** |
|
75 | - * Determine the current page being paginated. |
|
76 | - * |
|
77 | - * @return int |
|
78 | - */ |
|
79 | - public function currentPage(); |
|
80 | - |
|
81 | - /** |
|
82 | - * Determine if there are enough items to split into multiple pages. |
|
83 | - * |
|
84 | - * @return bool |
|
85 | - */ |
|
86 | - public function hasPages(); |
|
87 | - |
|
88 | - /** |
|
89 | - * Determine if there are more items in the data store. |
|
90 | - * |
|
91 | - * @return bool |
|
92 | - */ |
|
93 | - public function hasMorePages(); |
|
94 | - |
|
95 | - /** |
|
96 | - * Get the base path for paginator generated URLs. |
|
97 | - * |
|
98 | - * @return string|null |
|
99 | - */ |
|
100 | - public function path(); |
|
101 | - |
|
102 | - /** |
|
103 | - * Determine if the list of items is empty or not. |
|
104 | - * |
|
105 | - * @return bool |
|
106 | - */ |
|
107 | - public function isEmpty(); |
|
108 | - |
|
109 | - /** |
|
110 | - * Determine if the list of items is not empty. |
|
111 | - * |
|
112 | - * @return bool |
|
113 | - */ |
|
114 | - public function isNotEmpty(); |
|
115 | - |
|
116 | - /** |
|
117 | - * Render the paginator using a given view. |
|
118 | - * |
|
119 | - * @param string|null $view |
|
120 | - * @param array $data |
|
121 | - * @return string |
|
122 | - */ |
|
123 | - public function render($view = null, $data = []); |
|
7 | + /** |
|
8 | + * Get the URL for a given page. |
|
9 | + * |
|
10 | + * @param int $page |
|
11 | + * @return string |
|
12 | + */ |
|
13 | + public function url($page); |
|
14 | + |
|
15 | + /** |
|
16 | + * Add a set of query string values to the paginator. |
|
17 | + * |
|
18 | + * @param array|string $key |
|
19 | + * @param string|null $value |
|
20 | + * @return $this |
|
21 | + */ |
|
22 | + public function appends($key, $value = null); |
|
23 | + |
|
24 | + /** |
|
25 | + * Get / set the URL fragment to be appended to URLs. |
|
26 | + * |
|
27 | + * @param string|null $fragment |
|
28 | + * @return $this|string |
|
29 | + */ |
|
30 | + public function fragment($fragment = null); |
|
31 | + |
|
32 | + /** |
|
33 | + * The URL for the next page, or null. |
|
34 | + * |
|
35 | + * @return string|null |
|
36 | + */ |
|
37 | + public function nextPageUrl(); |
|
38 | + |
|
39 | + /** |
|
40 | + * Get the URL for the previous page, or null. |
|
41 | + * |
|
42 | + * @return string|null |
|
43 | + */ |
|
44 | + public function previousPageUrl(); |
|
45 | + |
|
46 | + /** |
|
47 | + * Get all of the items being paginated. |
|
48 | + * |
|
49 | + * @return array |
|
50 | + */ |
|
51 | + public function items(); |
|
52 | + |
|
53 | + /** |
|
54 | + * Get the "index" of the first item being paginated. |
|
55 | + * |
|
56 | + * @return int |
|
57 | + */ |
|
58 | + public function firstItem(); |
|
59 | + |
|
60 | + /** |
|
61 | + * Get the "index" of the last item being paginated. |
|
62 | + * |
|
63 | + * @return int |
|
64 | + */ |
|
65 | + public function lastItem(); |
|
66 | + |
|
67 | + /** |
|
68 | + * Determine how many items are being shown per page. |
|
69 | + * |
|
70 | + * @return int |
|
71 | + */ |
|
72 | + public function perPage(); |
|
73 | + |
|
74 | + /** |
|
75 | + * Determine the current page being paginated. |
|
76 | + * |
|
77 | + * @return int |
|
78 | + */ |
|
79 | + public function currentPage(); |
|
80 | + |
|
81 | + /** |
|
82 | + * Determine if there are enough items to split into multiple pages. |
|
83 | + * |
|
84 | + * @return bool |
|
85 | + */ |
|
86 | + public function hasPages(); |
|
87 | + |
|
88 | + /** |
|
89 | + * Determine if there are more items in the data store. |
|
90 | + * |
|
91 | + * @return bool |
|
92 | + */ |
|
93 | + public function hasMorePages(); |
|
94 | + |
|
95 | + /** |
|
96 | + * Get the base path for paginator generated URLs. |
|
97 | + * |
|
98 | + * @return string|null |
|
99 | + */ |
|
100 | + public function path(); |
|
101 | + |
|
102 | + /** |
|
103 | + * Determine if the list of items is empty or not. |
|
104 | + * |
|
105 | + * @return bool |
|
106 | + */ |
|
107 | + public function isEmpty(); |
|
108 | + |
|
109 | + /** |
|
110 | + * Determine if the list of items is not empty. |
|
111 | + * |
|
112 | + * @return bool |
|
113 | + */ |
|
114 | + public function isNotEmpty(); |
|
115 | + |
|
116 | + /** |
|
117 | + * Render the paginator using a given view. |
|
118 | + * |
|
119 | + * @param string|null $view |
|
120 | + * @param array $data |
|
121 | + * @return string |
|
122 | + */ |
|
123 | + public function render($view = null, $data = []); |
|
124 | 124 | } |
@@ -4,26 +4,26 @@ |
||
4 | 4 | |
5 | 5 | interface LengthAwarePaginator extends Paginator |
6 | 6 | { |
7 | - /** |
|
8 | - * Create a range of pagination URLs. |
|
9 | - * |
|
10 | - * @param int $start |
|
11 | - * @param int $end |
|
12 | - * @return array |
|
13 | - */ |
|
14 | - public function getUrlRange($start, $end); |
|
7 | + /** |
|
8 | + * Create a range of pagination URLs. |
|
9 | + * |
|
10 | + * @param int $start |
|
11 | + * @param int $end |
|
12 | + * @return array |
|
13 | + */ |
|
14 | + public function getUrlRange($start, $end); |
|
15 | 15 | |
16 | - /** |
|
17 | - * Determine the total number of items in the data store. |
|
18 | - * |
|
19 | - * @return int |
|
20 | - */ |
|
21 | - public function total(); |
|
16 | + /** |
|
17 | + * Determine the total number of items in the data store. |
|
18 | + * |
|
19 | + * @return int |
|
20 | + */ |
|
21 | + public function total(); |
|
22 | 22 | |
23 | - /** |
|
24 | - * Get the page number of the last available page. |
|
25 | - * |
|
26 | - * @return int |
|
27 | - */ |
|
28 | - public function lastPage(); |
|
23 | + /** |
|
24 | + * Get the page number of the last available page. |
|
25 | + * |
|
26 | + * @return int |
|
27 | + */ |
|
28 | + public function lastPage(); |
|
29 | 29 | } |