original_string: public function isEmbeddedOneChangedInParent()
      {
          if (!$rap = $this->getRootAndPath()) {
              return false;
          }
  
          if ($rap['root'] instanceof EmbeddedGroup) {
              return false;
          }
  
          $exPath = explode('.', $rap['path']);
          unset($exPath[count($exPath) -1 ]);
  
          $parentDocument = $rap['root'];
          foreach ($exPath as $embedded) {
              $parentDocument = $parentDocument->{'get'.ucfirst($embedded)}();
              if ($parentDocument instanceof EmbeddedGroup) {
                  return false;
              }
          }
  
          $rap = $this->getRootAndPath();
          $exPath = explode('.', $rap['path']);
          $name = $exPath[count($exPath) - 1];
  
          return $parentDocument->isEmbeddedOneChanged($name);
      }
code: public function isEmbeddedOneChangedInParent()
      {
          if (!$rap = $this->getRootAndPath()) {
              return false;
          }
  
          if ($rap['root'] instanceof EmbeddedGroup) {
              return false;
          }
  
          $exPath = explode('.', $rap['path']);
          unset($exPath[count($exPath) -1 ]);
  
          $parentDocument = $rap['root'];
          foreach ($exPath as $embedded) {
              $parentDocument = $parentDocument->{'get'.ucfirst($embedded)}();
              if ($parentDocument instanceof EmbeddedGroup) {
                  return false;
              }
          }
  
          $rap = $this->getRootAndPath();
          $exPath = explode('.', $rap['path']);
          $name = $exPath[count($exPath) - 1];
  
          return $parentDocument->isEmbeddedOneChanged($name);
      }
code_tokens: public function isEmbeddedOneChangedInParent ( ) { if ( ! $ rap = $ this -> getRootAndPath ( ) ) { return false ; } if ( $ rap [ 'root' ] instanceof EmbeddedGroup ) { return false ; } $ exPath = explode ( '.' , $ rap [ 'path' ] ) ; unset ( $ exPath [ count ( $ exPath ) - 1 ] ) ; $ parentDocument = $ rap [ 'root' ] ; foreach ( $ exPath as $ embedded ) { $ parentDocument = $ parentDocument -> { 'get' . ucfirst ( $ embedded ) } ( ) ; if ( $ parentDocument instanceof EmbeddedGroup ) { return false ; } } $ rap = $ this -> getRootAndPath ( ) ; $ exPath = explode ( '.' , $ rap [ 'path' ] ) ; $ name = $ exPath [ count ( $ exPath ) - 1 ] ; return $ parentDocument -> isEmbeddedOneChanged ( $ name ) ; }
docstring: Returns if the embedded document is an embedded one document changed.
  
  @return bool If the document is an embedded one document changed.
docstring_tokens: Returns if the embedded document is an embedded one document changed .