/
home
/
desid573
/
public_html
/
gcdriver
/
square
/
test
/
/home/desid573/public_html/gcdriver/square/test
mkdir
upload
Name
Size
Mode
Actions
Api/
-
0755
rm
Model/
-
0755
rm
ApiClientTest.php
2978
0644
edit
dl
rm
TestAccounts.php
412
0644
edit
dl
rm
Edit:
/home/desid573/public_html/gcdriver/square/test/TestAccounts.php
(412B)
<?php namespace SquareConnect; class TestAccounts { private static $accounts; public function __get($name) { if (is_null(self::$accounts)) { $json = file_get_contents('./travis-ci/accounts.json', FILE_USE_INCLUDE_PATH); $json = utf8_encode($json); self::$accounts = json_decode($json); } return self::$accounts->{$name}; } }
Save
{$name}; } }