コード例 #1
0
 public function create(string $type, array $options = []) : DataSetContextInterface
 {
     $context = $this->collection->get($type);
     $context->configure($options);
     return $context;
 }
コード例 #2
0
 /**
  * Creates a dataset's context for given type
  *
  * @param string $type
  * @param array  $options
  *
  * @return DataSetContextInterface
  */
 public function create($type, array $options = [])
 {
     $context = $this->collection->get($type);
     $context->configure($options);
     return $context;
 }