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 621
Zeile 93... Zeile 93...
93
            Caster::PREFIX_VIRTUAL.'value' => (string) $stringable,
93
            Caster::PREFIX_VIRTUAL.'value' => (string) $stringable,
94
        ];
94
        ];
95
    }
95
    }
Zeile 96... Zeile 96...
96
 
96
 
-
 
97
    /**
-
 
98
     * Get an array representing the properties of a process result.
-
 
99
     *
-
 
100
     * @param  \Illuminate\Process\ProcessResult  $result
-
 
101
     * @return array
-
 
102
     */
-
 
103
    public static function castProcessResult($result)
-
 
104
    {
-
 
105
        return [
-
 
106
            Caster::PREFIX_VIRTUAL.'output' => $result->output(),
-
 
107
            Caster::PREFIX_VIRTUAL.'errorOutput' => $result->errorOutput(),
-
 
108
            Caster::PREFIX_VIRTUAL.'exitCode' => $result->exitCode(),
-
 
109
            Caster::PREFIX_VIRTUAL.'successful' => $result->successful(),
-
 
110
        ];
-
 
111
    }
-
 
112
 
97
    /**
113
    /**
98
     * Get an array representing the properties of a model.
114
     * Get an array representing the properties of a model.
99
     *
115
     *
100
     * @param  \Illuminate\Database\Eloquent\Model  $model
116
     * @param  \Illuminate\Database\Eloquent\Model  $model
101
     * @return array
117
     * @return array