2016-03-28 11:15:08 -07:00
|
|
|
<?php
|
2016-03-28 11:38:08 -07:00
|
|
|
namespace MichaelAChrisco\ReadOnly;
|
2016-03-28 11:15:08 -07:00
|
|
|
trait ReadOnlyTrait {
|
|
|
|
public function save(array $options = []){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function update(array $attributes = [], array $options = []){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
static function firstOrCreate(array $arr){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
static function firstOrNew(array $arr){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function delete(){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
static function destroy($ids){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function restore(){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function forceDelete(){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function test(){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|