Blame view

public/vendor/illuminate/contracts/Database/Eloquent/CastsAttributes.php 751 Bytes
86143e36f   Андрей Ларионов   Коммит вторник
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  <?php
  
  namespace Illuminate\Contracts\Database\Eloquent;
  
  interface CastsAttributes
  {
      /**
       * Transform the attribute from the underlying model values.
       *
       * @param  \Illuminate\Database\Eloquent\Model  $model
       * @param  string  $key
       * @param  mixed  $value
       * @param  array  $attributes
       * @return mixed
       */
      public function get($model, string $key, $value, array $attributes);
  
      /**
       * Transform the attribute to its underlying model values.
       *
       * @param  \Illuminate\Database\Eloquent\Model  $model
       * @param  string  $key
       * @param  mixed  $value
       * @param  array  $attributes
       * @return mixed
       */
      public function set($model, string $key, $value, array $attributes);
  }