コード例 #1
0
ファイル: Set.php プロジェクト: skema/skema
 /**
  * @param Field\Base $field
  * @return $this
  */
 public function addField($field)
 {
     if (isset($this->directivesByCleanName[$field->cleanName])) {
         return $this;
     }
     $field->addToSet($this);
     $this->directivesByCleanName[$field->cleanName] = $field->getDirective();
     return $this;
 }