records = [ [ 'id' => self::ENCRYPTION_KEY_ORG_A_ID, 'uuid' => $faker->uuid(), 'type' => self::TYPE_PGP, 'encryption_key' => $this->getPublicKey(self::KEY_TYPE_EDCH), 'revoked' => false, 'expires' => null, 'owner_id' => OrganisationsFixture::ORGANISATION_A_ID, 'owner_model' => 'Organisation', 'created' => $faker->dateTime()->getTimestamp(), 'modified' => $faker->dateTime()->getTimestamp() ], [ 'id' => self::ENCRYPTION_KEY_ORG_B_ID, 'uuid' => $faker->uuid(), 'type' => self::TYPE_PGP, 'encryption_key' => $this->getPublicKey(self::KEY_TYPE_EDCH), 'revoked' => false, 'expires' => null, 'owner_id' => OrganisationsFixture::ORGANISATION_B_ID, 'owner_model' => 'Organisation', 'created' => $faker->dateTime()->getTimestamp(), 'modified' => $faker->dateTime()->getTimestamp() ], ]; parent::init(); } public static function getPublicKey(string $type): string { switch ($type) { case self::KEY_TYPE_EDCH: return <<