for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace App\Modules\Core\Services;
use App\Modules\Core\BaseClasses\BaseService;
use App\Modules\Core\Repositories\SettingRepository;
class SettingService extends BaseService
{
/**
* Init new object.
*
* @param SettingRepository $repo
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
*/
public function __construct(SettingRepository $repo)
parent::__construct($repo);
}
* Save list of settings.
* @param array $data
public function saveMany(array $data)
\DB::transaction(function () use ($data) {
foreach ($data as $value) {
$this->repo->save($value);
});
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.