public function isCreatedByFactory() { return $this->factoryObjectName !== '' && $this->factoryMethodName !== ''; }