Skip to content

Latest commit

 

History

History
58 lines (35 loc) · 1.4 KB

Annotation.md

File metadata and controls

58 lines (35 loc) · 1.4 KB

Codeception\Util\Annotation

Simple annotation parser. Take only key-value annotations for methods or class.

Methods

public __construct

See source

public fetch

  • param $annotation
  • return null

See source

public fetchAll

  • param $annotation
  • return array

See source

public static forClass

Grabs annotation values.

Usage example:

<?php
Annotation::forClass('MyTestCase')->fetch('guy');
Annotation::forClass('MyTestCase')->method('testData')->fetch('depends');
Annotation::forClass('MyTestCase')->method('testData')->fetchAll('depends');

?>
  • param $class

  • return $this

See source

public static forMethod

  • param $class

  • param $method

  • return $this

See source

public method

  • param $method

  • return $this

See source