/**
  * @inheritdoc
  */
 public function getDependencies(Uses $uses)
 {
     foreach ($this->staticCalls as $staticCall) {
         $class = $this->getClassByStaticCall($staticCall);
         if ($uses->hasUses()) {
             $class = $uses->getClassNameWithNamespace($class);
         }
         $this->dependencies[] = $class;
     }
     return $this->dependencies;
 }
 /**
  * @inheritdoc
  */
 public function getDependencies(Uses $uses)
 {
     foreach ($this->throws as $throw) {
         $class = '';
         if ($this->tokens->getTokenCodeByKey($throw + 2) == T_NEW) {
             $step = 4;
             while ($this->tokens->getTokenCodeByKey($throw + $step) == T_STRING || $this->tokens->getTokenCodeByKey($throw + $step) == T_NS_SEPARATOR) {
                 $class .= trim($this->tokens->getTokenValueByKey($throw + $step));
                 $step++;
             }
             if ($uses->hasUses()) {
                 $class = $uses->getClassNameWithNamespace($class);
             }
             $this->dependencies[] = $class;
         }
     }
     return $this->dependencies;
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUses()
 {
     return $this->hasMany(Uses::className(), ['equiment_id' => 'id']);
 }