Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 399
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile -... Zeile 3...
-
 
3
namespace Illuminate\Contracts\Database\Eloquent;
-
 
4
 
-
 
5
/**
-
 
6
 * @template TGet
3
namespace Illuminate\Contracts\Database\Eloquent;
7
 * @template TSet
4
 
8
 */
5
interface CastsAttributes
9
interface CastsAttributes
6
{
10
{
7
    /**
11
    /**
8
     * Transform the attribute from the underlying model values.
12
     * Transform the attribute from the underlying model values.
9
     *
13
     *
10
     * @param  \Illuminate\Database\Eloquent\Model  $model
14
     * @param  \Illuminate\Database\Eloquent\Model  $model
11
     * @param  string  $key
15
     * @param  string  $key
12
     * @param  mixed  $value
16
     * @param  mixed  $value
13
     * @param  array  $attributes
17
     * @param  array  $attributes
14
     * @return mixed
18
     * @return TGet|null
Zeile 15... Zeile 19...
15
     */
19
     */
16
    public function get($model, string $key, $value, array $attributes);
20
    public function get($model, string $key, $value, array $attributes);
17
 
21
 
18
    /**
22
    /**
19
     * Transform the attribute to its underlying model values.
23
     * Transform the attribute to its underlying model values.
20
     *
24
     *
21
     * @param  \Illuminate\Database\Eloquent\Model  $model
25
     * @param  \Illuminate\Database\Eloquent\Model  $model
22
     * @param  string  $key
26
     * @param  string  $key
23
     * @param  mixed  $value
27
     * @param  TSet|null  $value
24
     * @param  array  $attributes
28
     * @param  array  $attributes
25
     * @return mixed
29
     * @return mixed