__construct() public method

NOTE: This is for internal use only, you should use the ContextFactory for creating Context instances.
See also: ContextFactoryInterface
public __construct ( string $workspaceName, DateTimeInterface $currentDateTime, array $dimensions, array $targetDimensions, boolean $invisibleContentShown, boolean $removedContentShown, boolean $inaccessibleContentShown )
$workspaceName string Name of the current workspace
$currentDateTime DateTimeInterface The current date and time
$dimensions array Array of dimensions with array of ordered values
$targetDimensions array Array of dimensions used when creating / modifying content
$invisibleContentShown boolean If invisible content should be returned in query results
$removedContentShown boolean If removed content should be returned in query results
$inaccessibleContentShown boolean If inaccessible content should be returned in query results
 /**
  * Creates a new Content Context object.
  *
  * NOTE: This is for internal use only, you should use the ContextFactory for creating Context instances.
  *
  * @param string $workspaceName Name of the current workspace
  * @param \DateTimeInterface $currentDateTime The current date and time
  * @param array $dimensions Array of dimensions with array of ordered values
  * @param array $targetDimensions Array of dimensions used when creating / modifying content
  * @param boolean $invisibleContentShown If invisible content should be returned in query results
  * @param boolean $removedContentShown If removed content should be returned in query results
  * @param boolean $inaccessibleContentShown If inaccessible content should be returned in query results
  * @param Site $currentSite The current Site object
  * @param Domain $currentDomain The current Domain object
  * @see ContextFactoryInterface
  */
 public function __construct($workspaceName, \DateTimeInterface $currentDateTime, array $dimensions, array $targetDimensions, $invisibleContentShown, $removedContentShown, $inaccessibleContentShown, Site $currentSite = null, Domain $currentDomain = null)
 {
     parent::__construct($workspaceName, $currentDateTime, $dimensions, $targetDimensions, $invisibleContentShown, $removedContentShown, $inaccessibleContentShown);
     $this->currentSite = $currentSite;
     $this->currentDomain = $currentDomain;
     $this->targetDimensions = $targetDimensions;
 }