Ships
in package
Ships Class
Tags
Table of Contents
- $_ships : array<string|int, mixed>
- __construct() : void
- Constructor
- getCurrentShips() : array<string|int, mixed>
- Return current alliance data
- getShips() : array<string|int, mixed>
- Get all the ships
- createNewShipsEntity() : ShipsEntity
- Create a new instance of ShipsEntity
- setUp() : void
- Set up the list of alliances
Properties
$_ships
private
array<string|int, mixed>
$_ships
= []
Methods
__construct()
Constructor
public
__construct(array<string|int, mixed> $planet_data) : void
Parameters
- $planet_data : array<string|int, mixed>
-
Planet Data
Return values
void —getCurrentShips()
Return current alliance data
public
getCurrentShips() : array<string|int, mixed>
Return values
array<string|int, mixed> —getShips()
Get all the ships
public
getShips() : array<string|int, mixed>
Return values
array<string|int, mixed> —createNewShipsEntity()
Create a new instance of ShipsEntity
private
createNewShipsEntity(array<string|int, mixed> $ships) : ShipsEntity
Parameters
- $ships : array<string|int, mixed>
-
Ships
Return values
ShipsEntity —setUp()
Set up the list of alliances
private
setUp(array<string|int, mixed> $ships) : void
Parameters
- $ships : array<string|int, mixed>
-
Ships