Example #1
0
 /**
  * Construct the Json instance.
  *
  * @param  mixed       $path
  * @param  Filesystem  $filesystem
  */
 public function __construct($path, Filesystem $filesystem = null)
 {
     $this->path = (string) $path;
     $this->filesystem = $filesystem ?: new Filesystem();
     $this->attributes = Collection::make($this->getAttributes());
 }
Example #2
0
 /**
  * Comparator constructor.
  *
  * @param  array  $unsaved
  * @param  array  $saved
  */
 public function __construct(array $unsaved, array $saved)
 {
     $this->unsaved = Collection::make($unsaved);
     $this->saved = Collection::make($saved);
 }