| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCommunity\Framework\Support; |
| 4 |
|
| 5 |
interface UrlRoutable |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Get the value of the model's route key. |
| 9 |
* |
| 10 |
* @return mixed |
| 11 |
*/ |
| 12 |
public function getRouteKey(); |
| 13 |
|
| 14 |
/** |
| 15 |
* Get the route key for the model. |
| 16 |
* |
| 17 |
* @return string |
| 18 |
*/ |
| 19 |
public function getRouteKeyName(); |
| 20 |
|
| 21 |
/** |
| 22 |
* Retrieve the model for a bound value. |
| 23 |
* |
| 24 |
* @param mixed $value |
| 25 |
* @param string|null $field |
| 26 |
* @return \FluentCommunity\Framework\Database\Orm\Model|null |
| 27 |
*/ |
| 28 |
public function resolveRouteBinding($value, $field = null); |
| 29 |
} |
| 30 |
|