public function loadStoredRoutine(): array
  {
    $this->routineName           = pathinfo($this->sourceFilename, PATHINFO_FILENAME);
    $this->phpStratumOldMetadata = $this->phpStratumMetadata;
    $this->filemtime             = filemtime($this->sourceFilename);

    $load = $this->mustLoadStoredRoutine();
    if ($load)
    {
      $this->io->text(sprintf('Loading routine <dbo>%s</dbo>', OutputFormatter::escape($this->routineName)));

      $this->readSourceCode();
      $this->extractPlaceholders();
      $this->extractDesignationType();
      $this->extractReturnType();
      $this->extractRoutineTypeAndName();
      $this->validateReturnType();
      $this->loadRoutineFile();
      $this->extractBulkInsertTableColumnsInfo();
      $this->extractExtendedParametersInfo();
      $this->extractRoutineParametersInfo();
      $this->extractDocBlockPartsWrapper();
      $this->validateParameterLists();
      $this->updateMetadata();
    }

    return $this->phpStratumMetadata;
  }
public function loadStoredRoutine(): array
  {
    $this->routineName           = pathinfo($this->sourceFilename, PATHINFO_FILENAME);
    $this->phpStratumOldMetadata = $this->phpStratumMetadata;
    $this->filemtime             = filemtime($this->sourceFilename);

    $load = $this->mustLoadStoredRoutine();
    if ($load)
    {
      $this->io->text(sprintf('Loading routine <dbo>%s</dbo>', OutputFormatter::escape($this->routineName)));

      $this->readSourceCode();
      $this->extractPlaceholders();
      $this->extractDesignationType();
      $this->extractReturnType();
      $this->extractRoutineTypeAndName();
      $this->validateReturnType();
      $this->loadRoutineFile();
      $this->extractBulkInsertTableColumnsInfo();
      $this->extractExtendedParametersInfo();
      $this->extractRoutineParametersInfo();
      $this->extractDocBlockPartsWrapper();
      $this->validateParameterLists();
      $this->updateMetadata();
    }

    return $this->phpStratumMetadata;
  }
public function loadStoredRoutine ( ) : array { $ this -> routineName = pathinfo ( $ this -> sourceFilename , PATHINFO_FILENAME ) ; $ this -> phpStratumOldMetadata = $ this -> phpStratumMetadata ; $ this -> filemtime = filemtime ( $ this -> sourceFilename ) ; $ load = $ this -> mustLoadStoredRoutine ( ) ; if ( $ load ) { $ this -> io -> text ( sprintf ( 'Loading routine <dbo>%s</dbo>' , OutputFormatter :: escape ( $ this -> routineName ) ) ) ; $ this -> readSourceCode ( ) ; $ this -> extractPlaceholders ( ) ; $ this -> extractDesignationType ( ) ; $ this -> extractReturnType ( ) ; $ this -> extractRoutineTypeAndName ( ) ; $ this -> validateReturnType ( ) ; $ this -> loadRoutineFile ( ) ; $ this -> extractBulkInsertTableColumnsInfo ( ) ; $ this -> extractExtendedParametersInfo ( ) ; $ this -> extractRoutineParametersInfo ( ) ; $ this -> extractDocBlockPartsWrapper ( ) ; $ this -> validateParameterLists ( ) ; $ this -> updateMetadata ( ) ; } return $ this -> phpStratumMetadata ; }
Loads the stored routine into the instance of MySQL and returns the metadata of the stored routine.

@return array
Loads the stored routine into the instance of MySQL and returns the metadata of the stored routine .