api-8.x-1.x-dev/tests/files/sample_namespace/TraitG.php

tests/files/sample_namespace/TraitG.php
<?php

/**
 * @file Contains \api\test1\TraitG.
 */

namespace api\test1;

/**
 * Another sample trait.
 *
 * Has a method that conflicts with TraitF.
 */
trait TraitG {

  /**
   * Non-conflicting method to inherit.
   */
  protected function abc() {
    return 7;
  }

  /**
   * Conflicting method to inherit.
   */
  protected function def() {
    return 'Value from TraitG';
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc