Untitled

Run Settings
LanguagePHP
Language Version
Run Command
<?php //In Controller $MyClass = new MyClass(); // MyClass class MyClass { private $token, $api_url; public function __construct() { // Call checkIfHasToken() from constructor or just initialize variables? } public function checkIfHasToken() { // Checking if has token in session // If true - Return true to controller or call getTokenFromSession() directly from here? } public function getTokenFromSession() { } public function getNewToken() { } public function someApiCall() { } }
Editor Settings
Theme
Key bindings
Full width
Lines