private function setStatusInternal($status)
	{
		if ( $status !== null && ! $status instanceof StatusInterface) {
			throw new WorkflowException('Status instance expected');
		}

		$this->_status = $status;

		$statusId = ($status === null ? null : $status->getId());
		if ($this->getStatusConverter() != null ) {
			$statusId = $this->_statusConverter->toModelAttribute($statusId);
		}

		$this->owner->{$this->statusAttribute} = $statusId;
	}
private function setStatusInternal($status)
	{
		if ( $status !== null && ! $status instanceof StatusInterface) {
			throw new WorkflowException('Status instance expected');
		}

		$this->_status = $status;

		$statusId = ($status === null ? null : $status->getId());
		if ($this->getStatusConverter() != null ) {
			$statusId = $this->_statusConverter->toModelAttribute($statusId);
		}

		$this->owner->{$this->statusAttribute} = $statusId;
	}
private function setStatusInternal ( $ status ) { if ( $ status !== null && ! $ status instanceof StatusInterface ) { throw new WorkflowException ( 'Status instance expected' ) ; } $ this -> _status = $ status ; $ statusId = ( $ status === null ? null : $ status -> getId ( ) ) ; if ( $ this -> getStatusConverter ( ) != null ) { $ statusId = $ this -> _statusConverter -> toModelAttribute ( $ statusId ) ; } $ this -> owner -> { $ this -> statusAttribute } = $ statusId ; }
Set the internal status value and the owner model status attribute.

@param Status|null $status
Set the internal status value and the owner model status attribute .