public function Foo::test in Coder 8.2
Same name and namespace in other branches
- 7.2 coder_sniffer/Test/good/good.php \Foo::test()
File
- coder_sniffer/
Drupal/ Test/ good/ good.php, line 986 - This file contains all the valid notations for the drupal coding standard.
Class
- Foo
- All classes need to have a docblock.
Code
public function test() {
/** @var \Drupal\node\NodeInterface $node */
$node = $this->entity;
/** @var \Drupal\node\NodeInterface[] $nodes */
$nodes = foo();
/** @var \Drupal\node\NodeInterface|\PHPUnit_Framework_MockObject_MockObject $node_mock */
$node_mock = mock_node();
/** @var \Drupal\SomeInterface4You $thing */
$thing = thing();
/** @var \Drupal\SomeInterface4You $test2 */
$test2 = test2();
return $node;
}