__construct() public method

Instantiates the collection by specifying what type of Object will be used.
public __construct ( $type, array $items = [] )
$type
$items array
コード例 #1
0
 /**
  * Instantiates the collection by specifying what type of Object will be used.
  *
  * @param string $objectName Name of the class or interface used in the Collection
  */
 public function __construct($objectName = "{{foo}}")
 {
     parent::__construct($objectName);
 }
コード例 #2
0
 /**
  * ProcessingCheckCollection constructor.
  */
 public function __construct()
 {
     parent::__construct(static::OBJECT_CLASS);
 }