/** * * * There isn't much to ordering here. * Just use a numeric key and we will try tro sort later * * @param * array of parameters $sequence */ public function __construct($resources = []) { foreach ($resources as $key => $resource) { if (!$resource instanceof LeadFerret\Lib\JSONSchema\Resource) { throw new Exceptions\InvalidParameterException("Only search paramater objects allowed here."); } } parent::__construct($resources); }
/** * * * * There isn't much to ordering here. * Just use a numeric key and we will try tro sort later * * @param * array of parameters $sequence */ public function __construct($serializers = []) { foreach ($serializers as $key => $serializer) { if (!$serializer instanceof BaseSerializer) { throw new \RuntimeException("Only serializer objects allowed here."); } } parent::__construct($serializers); }
/** * There isn't much to ordering here. * Just use a numeric key and we will try tro sort later * * @param array $serializers */ public function __construct($serializers = []) { foreach ($serializers as $key => $serializer) { if (!$serializer instanceof BaseSerializer) { throw new Exceptions\InvalidParameterException("Only search paramater objects allowed here."); } } parent::__construct($serializers); }
/** * * * There isn't much to ordering here. * Just use a numeric key and we will try tro sort later * * @param array $resources */ public function __construct($resources = []) { foreach ($resources as $key => $resource) { if (!$resource instanceof Resource) { throw new \RuntimeException("Only Resource objects allowed here."); } } parent::__construct($resources); }
/** * PHP Constructor * * @param array $elements */ public function __construct(array $elements = array()) { parent::__construct($elements); $this->post_type_labels = $this->get_post_type_labels(); $this->post_type_args = $this->get_post_type_args(); }
public function __construct(ContainerInterface $container, array $serviceIds = array()) { parent::__construct($serviceIds); $this->container = $container; }