Indica si se dan las condiciones para que se inicialize con el nombre de método proporcionado

@param object $object
@param string $inverted

@return bool
439232
private function mustBeInitialized(object $object, string $inverted): bool
    {
        return !is_object($this->object) && method_exists($object, $inverted);
    }
676036
protected function crudIsGranted($attributes, $object = null)
    {
        try {
            return $this->crudAuthorizationChecker()->isGranted($attributes, $object);
        } catch (ServiceNotFoundException $e) {
            return $this->crudSecurity()->isGranted($attributes, $object);
        }
    }
209238
public static function serialize( $object, $encoding = "utf-8" )
	{
		$root	= new XML_DOM_Node( "object" );
		$root->setAttribute( 'class', get_class( $object ) );
		$vars	= get_object_vars( $object );
		self::serializeVarsRec( $vars, $root );
		$builder	= new XML_DOM_Builder();
		$serial		= $builder->build( $root, $encoding );
		return $serial;
	}
383660
public function has($object)
    {
        // search for the correct serializer
        foreach ($this->serializers as $serializer) {
            $className = $this->getSerializerHandledClass($serializer);

            if ($object instanceof $className || $object === $className) {
                return true;
            }
        }

        false;
    }
1302126
public static function isDeleted($object)
    {
        if (true === method_exists($object, 'getDeleted') && true === $object->getDeleted()) {
            return true;
        }

        if (true === method_exists($object, 'isDeleted') && true === $object->isDeleted()) {
            return true;
        }

        return false;
    }
1026201
public function getIdentifier($object)
    {
        $identifier = $this->getMethod($object);

        if (!$identifier) {
            return false;
        }

        return \call_user_func([$object, $identifier]);
    }
510833
protected function isIgnoredObject($object)
    {
        return in_array(
            strtolower($class = ($parent = get_parent_class($object)) ? $parent : get_class($object)),
            $this->ignoredObjects
        );
    }
230062
public function pegaValoresAtributoDoObjeto($object)
    {
        $nomeAtributos   = self::pegaAtributosDoObjeto($object);
        $valAtrFinal     = [];
        $reflectionClass = new ReflectionClass($object);
        
        $iterator = 0;
        $limit    = count($nomeAtributos);
        for ($iterator; $iterator < $limit; $iterator++) {
            $reflectionProperty = $reflectionClass->getProperty($nomeAtributos[$iterator]);
            $reflectionProperty->setAccessible(true);
            $valAtrFinal[$iterator] = $reflectionProperty->getValue($object);
        }

        return $valAtrFinal;
    }
708754
public function get($object = false)
    {
        $this->prepare();

        return $this->prepareResult($this->_map, $object);
    }
1370603
public function isLabelSet($object)
    {
        $this->reflectionProperty->setAccessible(true);
        $v = $this->reflectionProperty->getValue($object);
        if (true === $v) {
            return true;
        }

        return false;
    }
472010
public function checkInstanceOfRestriction($object) : bool
    {
        return empty($this->instanceOf)|| $object instanceOf $this->instanceOf;
    }
605971
public function offsetExists($object) : bool
    {
        $hash = spl_object_hash($object);

        return isset($this->objects[$hash]);
    }
160908
public function isReadOnly($object)
    {
        if ( ! is_object($object)) {
            throw ORMInvalidArgumentException::readOnlyRequiresManagedEntity($object);
        }

        return isset($this->readOnlyObjects[spl_object_hash($object)]);
    }
526424
function (obj) {
      var inverted = {};
      for (var key in obj) {
        if (obj.hasOwnProperty(key)) {
          inverted[obj[key]] = key;
        }
      }
      return inverted;
    }
461739
public function exists(string $object) : bool
    {
        return (!empty($this->registry) && isset($this->registry[$object]));
    }
563078
public static function objectArray($object)
    {
        if (is_object($object)) {
            $reflectionClass = new \ReflectionClass(get_class($object));
            $array = [];
            foreach ($reflectionClass->getProperties() as $property) {
                $property->setAccessible(true);
                $array[$property->getName()] = $property->getValue($object);
                $property->setAccessible(false);
            }

            //If above method failed? try, this one.
            $array = (empty($array)) ? json_decode(json_encode($object), true) : $array;

            return $array;
        }

        return false;
    }
1021341
public static function fromObject($object)
    {
        if (\is_object($object)) {
            $object = (array)$object;
        }
        if (\is_array($object)) {
            $array = [];
            foreach ($object as $key => $value) {
                $array[$key] = self::fromObject($value);
            }
        } else {
            $array = $object;
        }
        return $array;
    }