get() public méthode

Returns the built batch modification array.
public get ( ) : array | null
Résultat array | null
Exemple #1
0
 /**
  * Adds a modification to the models modifications array.
  *
  * @param BatchModification $modification
  *
  * @return $this
  */
 public function addModification(BatchModification $modification)
 {
     $batch = $modification->get();
     if (is_array($batch)) {
         $this->modifications[] = $batch;
     }
     return $this;
 }