Indatus\Ranger\RequestDiagnostics\RequestContainer::getParentAssociation PHP Method

getParentAssociation() public method

    public function getParentAssociation()
    {
        return $this->parentData;
    }

Usage Example

Example #1
0
 /**
  * _isNestedResource - looks at the parent association to determine if the api parameters
  * indicate a nested resource.
  *
  * These are both examples of nested resources
  * 
  * ie) http://example.com/users/1/accounts
  * ie) http://example.com/users/1/accounts/1
  * 
  * @return boolean
  * @codeCoverageIgnore
  */
 protected function isNestedResource()
 {
     $parent_association = $this->requestContainer->getParentAssociation();
     if (empty($parent_association) || is_null($parent_association)) {
         return false;
     }
     return true;
 }