private function prepareReplacements()
    {
        $usesString = '';
        foreach ($this->modelReplacements[':uses'] as $use) {
            $usesString .= 'use '.$use.';'.PHP_EOL;
        }
        $this->modelReplacements[':uses'] = $usesString;

        $this->modelReplacements[':implementations'] = ! empty($this->modelReplacements[':implementations']) ?
            'implements '.implode(', ', $this->modelReplacements[':implementations']) : '';

        $this->modelReplacements[':traits'] = ! empty($this->modelReplacements[':traits']) ?
            'use '.implode(', ', $this->modelReplacements[':traits']).';' : '';
    }
private function prepareReplacements()
    {
        $usesString = '';
        foreach ($this->modelReplacements[':uses'] as $use) {
            $usesString .= 'use '.$use.';'.PHP_EOL;
        }
        $this->modelReplacements[':uses'] = $usesString;

        $this->modelReplacements[':implementations'] = ! empty($this->modelReplacements[':implementations']) ?
            'implements '.implode(', ', $this->modelReplacements[':implementations']) : '';

        $this->modelReplacements[':traits'] = ! empty($this->modelReplacements[':traits']) ?
            'use '.implode(', ', $this->modelReplacements[':traits']).';' : '';
    }
private function prepareReplacements ( ) { $ usesString = '' ; foreach ( $ this -> modelReplacements [ ':uses' ] as $ use ) { $ usesString .= 'use ' . $ use . ';' . PHP_EOL ; } $ this -> modelReplacements [ ':uses' ] = $ usesString ; $ this -> modelReplacements [ ':implementations' ] = ! empty ( $ this -> modelReplacements [ ':implementations' ] ) ? 'implements ' . implode ( ', ' , $ this -> modelReplacements [ ':implementations' ] ) : '' ; $ this -> modelReplacements [ ':traits' ] = ! empty ( $ this -> modelReplacements [ ':traits' ] ) ? 'use ' . implode ( ', ' , $ this -> modelReplacements [ ':traits' ] ) . ';' : '' ; }
Prepare Replacements.
Prepare Replacements .