Skip to content

Commit

Permalink
Adds a collection in the readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
antarestupin committed Feb 8, 2016
1 parent 571969f commit 674961a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@ class Server
/**
* @Access({Access::GET})
* @InitializeObject(ArrayCollection::class)
* @ListBehavior
*/
private $collection;
private $processes;
}

$server = new Server("192.30.252.128");

$server->getIpAdress(); // 192.30.252.128
$server->getCollection(); // Instance of ArrayCollection

$server->getProcesses(); // Instance of ArrayCollection
$server->addProcess(new Process());

$server->setIpAdress("127.0.0.1");
$ip = $server->getIpAdress(); // 127.0.0.1
Expand Down

0 comments on commit 674961a

Please sign in to comment.