src/Synapse/Mapper/AbstractMapper.php
protected function initialize()
    {
        if ($this->initialized) {
            return;
        }

        if (! is_object($this->prototype)) {
            $this->prototype = new ArrayObject;
        }

        if (! $this->hydrator instanceof HydratorInterface) {
            $this->hydrator = new ArraySerializable;
        }

        $this->initialized = true;
    }
protected function initialize()
    {
        if ($this->initialized) {
            return;
        }

        if (! is_object($this->prototype)) {
            $this->prototype = new ArrayObject;
        }

        if (! $this->hydrator instanceof HydratorInterface) {
            $this->hydrator = new ArraySerializable;
        }

        $this->initialized = true;
    }
protected function initialize ( ) { if ( $ this -> initialized ) { return ; } if ( ! is_object ( $ this -> prototype ) ) { $ this -> prototype = new ArrayObject ; } if ( ! $ this -> hydrator instanceof HydratorInterface ) { $ this -> hydrator = new ArraySerializable ; } $ this -> initialized = true ; }
Set up the hydrator and prototype of this mapper if not yet set
Set up the hydrator and prototype of this mapper if not yet set