Eloquent\Phony\Mock\Builder\MockDefinition::inspectTypes PHP Method

inspectTypes() private method

private inspectTypes ( )
    private function inspectTypes()
    {
        if (null !== $this->typeNames) {
            return;
        }
        $this->typeNames = array();
        $this->interfaceNames = array();
        $this->traitNames = array();
        foreach ($this->types as $type) {
            $this->typeNames[] = $typeName = $type->getName();
            if ($type->isInterface()) {
                $this->interfaceNames[] = $typeName;
            } elseif ($this->isTraitSupported && $type->isTrait()) {
                $this->traitNames[] = $typeName;
            } else {
                $this->parentClassName = $typeName;
            }
        }
    }