Skip to content

Commit

Permalink
Correct example method calls: $o-m() to $o->m().
Browse files Browse the repository at this point in the history
  • Loading branch information
boombatower committed Sep 15, 2016
1 parent 9dd585e commit e9effc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,20 +260,20 @@ $mm->delete(151341579);
<?php
$abilities = new Dota2Api\Data\Abilities();
$abilities->parse();
$abilities-getDataById(5172); // return array for ability with id 5172 (BeastMaster Inner Beast)
$abilities->getDataById(5172); // return array for ability with id 5172 (BeastMaster Inner Beast)
// same, because there are no thumbs for abilities
$abilities->getImgUrlById(5172, false);
$abilities->getImgUrlById(5172);

$heroes = new Dota2Api\Data\Heroes();
$heroes->parse();
$heroes-getDataById(97); // get info about Magnus
$heroes->getDataById(97); // get info about Magnus
$heroes->getImgUrlById(97, false); // large image
$heroes->getImgUrlById(97); // thumb

$items = new Dota2Api\Data\Items();
$items->parse();
$items-getDataById(149); // get info about Crystalis
$items->getDataById(149); // get info about Crystalis
$items->getImgUrlById(149, false); // large image
$items->getImgUrlById(149); // thumb

Expand Down

0 comments on commit e9effc7

Please sign in to comment.