objectManager = $objectManager; } /** * Creates a SensitiveCookieMetadata object with the supplied metadata. * * @param array $metadata * @return SensitiveCookieMetadata */ public function createSensitiveCookieMetadata($metadata = []) { return $this->objectManager->create( 'Magento\Framework\Stdlib\Cookie\SensitiveCookieMetadata', ['metadata' => $metadata] ); } /** * Creates a PublicCookieMetadata object with the supplied metadata. * * @param array $metadata * @return PublicCookieMetadata */ public function createPublicCookieMetadata($metadata = []) { return $this->objectManager->create( 'Magento\Framework\Stdlib\Cookie\PublicCookieMetadata', ['metadata' => $metadata] ); } /** * Creates CookieMetadata object with the supplied metadata. * * @param array $metadata * @return CookieMetadata */ public function createCookieMetadata($metadata = []) { return $this->objectManager->create( 'Magento\Framework\Stdlib\Cookie\CookieMetadata', ['metadata' => $metadata] ); } }