Провкра, является ли подчиненным для указанного объекта?
@param $object
@return bool
163124
function child_of($object)
    {
        if ($object instanceof Entity){
            $object = $object->uri();
        }
        return $object.'/' == mb_substr($this->uri(),0,mb_strlen($object)+1);
    }
445434
static public function has($object, $key)
    {
        $oid = spl_object_hash($object);

        return isset(static::$archive[$oid]) && (isset(static::$archive[$oid][$key]) || array_key_exists($key, static::$archive[$oid]));
    }
245882
private function isGranted($role, $object = null): bool
    {
        if (null === $this->securityChecker) {
            return false;
        }

        try {
            return $this->securityChecker->isGranted($role, $object);
        } catch (AuthenticationCredentialsNotFoundException $e) {
            return false;
        }
    }
941361
public function equals($object)
    {
        if (!is_a($object, '\Slick\FileSystem\Node')) {
            return false;
        }

        $path = $this->details->getRealPath();

        return $path == $object->details->getRealPath();
    }
868847
protected function isCacheableObject($object)
    {
        return $object instanceof UserInterface || $object instanceof RoleHierarchicalInterface || $object instanceof GroupInterface || $object instanceof OrganizationUserInterface;
    }
444878
protected function checkRules($object)
    {
        $this->assertTrue(property_exists($object, 'rules'));

        $this->assertInternalType('array', $object->rules);

        foreach ($object->rules as $rule) {
            $this->checkRule($rule);
        }
    }
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;
    }
520306
public static function email($object): bool
    {
        if (Any::isEmpty($object)) { // allow empty
            return true;
        }

        if (!Any::isLine($object)) {
            return false;
        }

        return Str::isEmail($object);
    }
1229913
public function getObject($query, $object)
    {
        $this->statement = $this->db->query($query);
        if ($this->statement) {
            $this->statement->setFetchMode(\PDO::FETCH_CLASS, $object);
            return $this->statement->fetch();
        }
        return false;
    }
581303
public static function get($object) {
        /** @var \Gcs\Framework\Core\Http\Request\Form $class */
        $class = $object->name;
        $class = new $class();
        $class->init();

        $request = Request::instance();

        if (($class->getForm() == '' && $request->data->form == true) || isset($request->data->post[$class->getForm()])) {
            switch ($request->data->method) {
                case 'get' :
                    $class->get();
                    break;

                case 'post' :
                    $class->post();
                    break;

                case 'put' :
                    $class->put();
                    break;

                case 'patch' :
                    $class->patch();
                    break;

                case 'delete' :
                    $class->delete();
                    break;
            }

            $class->check();
        }

        return $class;
    }
850916
public function equalsTo(Object $object)
    {
        if (!$this->sameTypeAs($object)) {
            throw new NotMatchTypeException($this);
        }

        return $this->start()->equalsTo($object->start()) && $this->duration()->equalsTo($object->duration()) && $this->recurrence() === $object->recurrence();
    }
93693
public function object($object)
    {
        // We will check for a custom object, which allows developers to create
        // objects using their own customized object Closure to create it.
        // Otherwise, we'll check to see if an object exists by default.

        if (array_key_exists($object, $this->extensions)) {
            return $this->extensions[$object]($this);
        }

        $object = is_numeric($object) ? $object : $this->objects->find($object);

        return new OntraportObject($this, $object);
    }
83807
public function canHandle($object)
    {
        if ($object instanceof File || ($object instanceof Media && (is_file($object->getContent()) || $object->getLocation() == 'local'))) {
            return true;
        }

        return false;
    }
458819
public function equals(PlayerContract $object): bool
    {
        return static::class === get_class($object)
        && $this->id() === $object->id()
        && $this->name() === $object->name()
        && $this->wallet() === $object->wallet();
    }
564281
protected function isDeletable($object): bool
    {
        $em = $this->getEntityManager();
        $em->beginTransaction();
        try {
            // if an object is softdeleteable, then set 'deletedAt' first, so that a 'hard-delete' will be attempted.
            if ($object instanceof SoftDeleteableInterface) {
                $object->setDeletedAt(new \DateTime());
            }
            $em->remove($object);
            $em->flush();
            $em->rollback();
            return true;
        } catch (ForeignKeyConstraintViolationException $exception) {
            $em->rollback();
            return false;
        }
    }
289463
public function isSatisfiedBy($object)
    {
        return $this->left->isSatisfiedBy($object) && $this->right->isSatisfiedBy($object);
    }
1136567
public function canHandle($object)
    {
        if ((is_string($object)) || ($object instanceof Media && $object->getContentType() == self::CONTENT_TYPE)) {
            return true;
        }

        return false;
    }