src/IncomingDumpEntry.php
public function assignEntryPointFromBatch(array $batch)
    {
        $entryPoint = collect($batch)->first(function ($entry) {
            return in_array($entry->type, [EntryType::REQUEST, EntryType::JOB, EntryType::COMMAND]);
        });

        if (! $entryPoint) {
            return;
        }

        $this->content = array_merge($this->content, [
            'entry_point_type' => $entryPoint->type,
            'entry_point_uuid' => $entryPoint->uuid,
            'entry_point_description' => $this->entryPointDescription($entryPoint),
        ]);
    }
public function assignEntryPointFromBatch(array $batch)
    {
        $entryPoint = collect($batch)->first(function ($entry) {
            return in_array($entry->type, [EntryType::REQUEST, EntryType::JOB, EntryType::COMMAND]);
        });

        if (! $entryPoint) {
            return;
        }

        $this->content = array_merge($this->content, [
            'entry_point_type' => $entryPoint->type,
            'entry_point_uuid' => $entryPoint->uuid,
            'entry_point_description' => $this->entryPointDescription($entryPoint),
        ]);
    }
public function assignEntryPointFromBatch ( array $ batch ) { $ entryPoint = collect ( $ batch ) -> first ( function ( $ entry ) { return in_array ( $ entry -> type , [ EntryType :: REQUEST , EntryType :: JOB , EntryType :: COMMAND ] ) ; } ) ; if ( ! $ entryPoint ) { return ; } $ this -> content = array_merge ( $ this -> content , [ 'entry_point_type' => $ entryPoint -> type , 'entry_point_uuid' => $ entryPoint -> uuid , 'entry_point_description' => $ this -> entryPointDescription ( $ entryPoint ) , ] ) ; }
Assign entry point parameters from the given batch entries.

@param  array  $batch
@return void
Assign entry point parameters from the given batch entries .