Last active
December 18, 2015 12:09
-
-
Save lstrojny/5780823 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Factory | |
{ | |
/** | |
* @param string:T $className | |
* @return T | |
*/ | |
public function create($className) | |
{} | |
/** | |
* @param string:T $className | |
* @return T[] | |
*/ | |
public function createList($className) | |
{} | |
} | |
/** | |
* @self T | |
*/ | |
abstract class Model_Abstract | |
{ | |
/** | |
* Will return Model_Abstract\Collection | |
* | |
* @return {T}\Collection | |
*/ | |
public function getCollection() | |
{ | |
} | |
/** | |
* Will return Model_Resource_Abstract | |
* | |
* @return {T/Model/Model_Resource} | |
*/ | |
public function getResource() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment