for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace DaveRandom\Jom;
final class SafeNodeFactory extends NodeFactory
{
/**
* @inheritdoc
*/
protected function createNodeFromArrayValue(array $array, ?Document $ownerDoc, int $flags): VectorNode
return $this->createArrayNodeFromPackedArray($array, $ownerDoc, $flags);
}
protected function createNodeFromObjectValue(object $object, ?Document $ownerDoc, int $flags): ?Node
return $this->createObjectNodeFromPropertyMap($object, $ownerDoc, $flags);