1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23:
<?php
namespace Contentstack;
use Contentstack\Stack\Stack;
require_once __DIR__ . '/lib/models/stack.php';
/*
* Contentstack abstract class to provide access to Stack Object
* */
abstract class Contentstack {
/*
* Static method for the Stack constructor
* @param
* string|api_key : Built.io Contentstack Stack API KEY.
* string|access_token : Built.io Contentstack Stack ACCESS TOKEN of respected Stack.
* string|environment : Environment whose content to be fetched.
* @return Stack
* */
public static function Stack($api_key = '', $access_token = '', $environment = 'development') {
return new Stack($api_key, $access_token, $environment);
}
}