Created
September 5, 2013 17:47
-
-
Save tlhunter/6453617 to your computer and use it in GitHub Desktop.
How does one use DocBlocks to specify a require array key?
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 MyCoolClass { | |
/** | |
* @var $data array How does one specify this array needs a 'subelement' key? | |
*/ | |
public function performAction($data) { | |
echo $data['requiredkey']; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment