getDeprecatedLanguageUsages() public method

public getDeprecatedLanguageUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage[]
return SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage[]
 /**
  * {@inheritdoc}
  */
 public function check(PhpFileInfo $phpFileInfo, RuleSet $ruleSet)
 {
     $violations = array();
     foreach ($phpFileInfo->getDeprecatedLanguageUsages() as $deprecatedLanguageUsage) {
         $violations[] = new Violation($deprecatedLanguageUsage, $phpFileInfo, $deprecatedLanguageUsage->comment());
     }
     return $violations;
 }