Sleimanx2\Plastic\Mappings\Mapper::getNotes PHP Method

getNotes() public method

Return the registered notes.
public getNotes ( ) : array
return array
    public function getNotes()
    {
        return $this->notes;
    }

Usage Example

Example #1
0
 /**
  * Execute the console command.
  */
 public function handle()
 {
     if (!$this->confirmToProceed()) {
         return;
     }
     $this->prepareDatabase();
     $path = $this->getMappingPath();
     $this->mapper->run($path, ['step' => $this->option('step')]);
     // Once the mapper has run we will grab the note output and send it out to
     // the console screen, since the mapper itself functions without having
     // any instances of the OutputInterface contract passed into the class.
     foreach ($this->mapper->getNotes() as $note) {
         $this->output->writeln($note);
     }
 }