for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://github.com/flipbox/salesforce/blob/master/LICENSE.md
* @link https://github.com/flipbox/salesforce
*/
namespace Flipbox\Salesforce\Collections;
use Flipbox\Skeleton\Collections\Collection as BaseCollection;
use Flipbox\Skeleton\Error\ErrorInterface;
use Flipbox\Skeleton\Error\ErrorTrait;
* @author Flipbox Factory <[email protected]>
* @since 2.1.0
class Collection extends BaseCollection implements ErrorInterface
{
use ErrorTrait;
* Errors may be transformed and passed in the constructor config
*
* @param array $errors
* @return $this
public function setErrors(array $errors)
foreach ($errors as $key => $error) {
$this->addError($key, $error);
}
return $this;