protected function setPrototype($prototype)
    {
        if ($this->entityName) {
            throw RuntimeException::setPrototypeCalledAgain();
        }

        $this->entityName = is_object($prototype)
            ? get_class($prototype)
            : $prototype;
    }
protected function setPrototype($prototype)
    {
        if ($this->entityName) {
            throw RuntimeException::setPrototypeCalledAgain();
        }

        $this->entityName = is_object($prototype)
            ? get_class($prototype)
            : $prototype;
    }
protected function setPrototype ( $ prototype ) { if ( $ this -> entityName ) { throw RuntimeException :: setPrototypeCalledAgain ( ) ; } $ this -> entityName = is_object ( $ prototype ) ? get_class ( $ prototype ) : $ prototype ; }
Setup the prototype of the entity this mapper works with.

@param  object $prototype
Setup the prototype of the entity this mapper works with .