Created
February 20, 2013 12:31
-
-
Save ezzatron/4995202 to your computer and use it in GitHub Desktop.
Siesta API definition ideas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Version1 extends AbstractApiDefinition | |
{ | |
public function configure() | |
{ | |
$this->setMajorVersion(1); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->incrementMinorVersion(); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
} | |
} | |
class Version2 extends AbstractApiDefinition | |
{ | |
public function configure() | |
{ | |
$this->setMajorVersion(2); | |
$this->extendsVersion(1); | |
// $this->deprecateRoute('kiuhsdfiuhsdf'); | |
$this->remove('kiuhsdfiuhsdf'); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->incrementMinorVersion(); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
} | |
} | |
class Version3 extends AbstractApiDefinition | |
{ | |
public function configure() | |
{ | |
$this->setMajorVersion(3); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->incrementMinorVersion(); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jmalloc