Skip to content

Instantly share code, notes, and snippets.

@tlhunter
Created September 5, 2013 17:47
Show Gist options
  • Save tlhunter/6453617 to your computer and use it in GitHub Desktop.
Save tlhunter/6453617 to your computer and use it in GitHub Desktop.
How does one use DocBlocks to specify a require array key?
<?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