original_string: private function _getPreparedTableObjects($table, array $optionalTables)
  	{
  		$tableObj          = $this->factory->references('Table', $table);
  		$optionalTablesObj = array();
  		foreach($optionalTables as $tbl)
  		{
  			$optionalTablesObj[] = $this->factory->references('Table', $tbl);
  		}
  
  		return array('table' => $tableObj, 'optionalTables' => $optionalTablesObj);
  	}
code: private function _getPreparedTableObjects($table, array $optionalTables)
  	{
  		$tableObj          = $this->factory->references('Table', $table);
  		$optionalTablesObj = array();
  		foreach($optionalTables as $tbl)
  		{
  			$optionalTablesObj[] = $this->factory->references('Table', $tbl);
  		}
  
  		return array('table' => $tableObj, 'optionalTables' => $optionalTablesObj);
  	}
code_tokens: private function _getPreparedTableObjects ( $ table , array $ optionalTables ) { $ tableObj = $ this -> factory -> references ( 'Table' , $ table ) ; $ optionalTablesObj = array ( ) ; foreach ( $ optionalTables as $ tbl ) { $ optionalTablesObj [ ] = $ this -> factory -> references ( 'Table' , $ tbl ) ; } return array ( 'table' => $ tableObj , 'optionalTables' => $ optionalTablesObj ) ; }
docstring: Create table objects from the passed arguments.
  An array will return with the key 'table' for the main table and 'optionalTables' for optional tables.
  When no optional tables are passed, the key 'optionalTables' return an empty array.
  
  @param string $table          Name of the main table.
  @param array  $optionalTables Optional table names, hold in an array.
  
  @return array Array with prepared table objects, format: ['table' => $tbl, 'optionalTables' => array].
docstring_tokens: Create table objects from the passed arguments . An array will return with the key table for the main table and optionalTables for optional tables . When no optional tables are passed the key optionalTables return an empty array .